Skip to content

Commit 7438cbd

Browse files
authored
Merge pull request #1 from NightrainsRbx/fix
Fix settings
2 parents b3f9ec1 + 21cf8f9 commit 7438cbd

File tree

2 files changed

+500
-462
lines changed

2 files changed

+500
-462
lines changed

LSP-robloxluau.sublime-settings

Lines changed: 70 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313

1414
// The server version to download in $CACHE/Package Storage
15-
"server_version": "1.3.0",
15+
"server_version": "1.3.1",
1616

1717
// Disable the trigger characters, because there's too many of them. The
1818
// default Lua syntax is capable enough to best decide when to trigger
@@ -30,127 +30,125 @@
3030
"settings": {
3131
// Color mode.
3232
// possible values: Grammar, Semantic
33-
"Lua.color.mode": "Grammar",
34-
// When the input looks like a file name, automatically `require` this file.
35-
"Lua.completion.autoRequire": true,
36-
// Shows function call snippets.
37-
// possible values: Disable, Both, Replace
38-
"Lua.completion.callSnippet": "Disable",
33+
"robloxLsp.color.mode": "Grammar",
34+
// Autocompletes function parentheses like in Roblox Studio.
35+
"robloxLsp.completion.callParenthesess": false,
3936
// Previewing the relevant code snippet of the suggestion may help you understand the usage
4037
// of the suggestion. The number set indicates the number of intercepted lines in the code
4138
// fragment. If it is set to `0`, this feature can be disabled.
42-
"Lua.completion.displayContext": 6,
39+
"robloxLsp.completion.displayContext": 0,
4340
// Enable completion.
44-
"Lua.completion.enable": true,
41+
"robloxLsp.completion.enable": true,
4542
// Shows keyword syntax snippets.
4643
// possible values: Disable, Both, Replace
47-
"Lua.completion.keywordSnippet": "Replace",
44+
"robloxLsp.completion.keywordSnippet": "Replace",
4845
// Display parameters in completion list. When the function has multiple definitions, they
4946
// will be displayed separately.
50-
"Lua.completion.showParams": true,
47+
"robloxLsp.completion.showParams": true,
48+
// Enable on type `end` autocompletion like in Roblox Studio.
49+
"robloxLsp.completion.endAutocompletion": false,
5150
// Shows words within the workspace.
52-
"Lua.completion.workspaceWord": true,
51+
"robloxLsp.completion.workspaceWord": true,
52+
// Shows deprecated members (Except duplicates).
53+
"robloxLsp.completion.deprecatedMembers": false,
5354
// Disabled diagnostic (Use code in hover brackets).
54-
"Lua.diagnostics.disable": [],
55+
"robloxLsp.diagnostics.disable": [],
5556
// Enable diagnostics.
56-
"Lua.diagnostics.enable": true,
57+
"robloxLsp.diagnostics.enable": true,
5758
// Defined global variables.
58-
"Lua.diagnostics.globals": [],
59+
"robloxLsp.diagnostics.globals": [],
5960
// If you want to check only opened files, choice Opened; else choice Any.
60-
"Lua.diagnostics.neededFileStatus": {},
61+
"robloxLsp.diagnostics.neededFileStatus": {},
6162
// Modified diagnostic severity.
62-
"Lua.diagnostics.severity": {},
63+
"robloxLsp.diagnostics.severity": {},
6364
// Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit
6465
// any file, the entire workspace will be re-diagnosed in the background. Set to negative to
6566
// disable workspace diagnostics.
66-
"Lua.diagnostics.workspaceDelay": 0,
67+
"robloxLsp.diagnostics.workspaceDelay": 0,
6768
// Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also
6869
// reduces the speed of workspace diagnostics. The diagnosis of the file you are currently
6970
// editing is always done at full speed and is not affected by this setting.
70-
"Lua.diagnostics.workspaceRate": 100,
71-
// Enabel hint.
72-
"Lua.hint.enable": false,
71+
"robloxLsp.diagnostics.workspaceRate": 100,
72+
// Enable hint.
73+
"robloxLsp.hint.enable": false,
7374
// Hint parameter name when the parameter called is literal.
74-
"Lua.hint.paramName": true,
75+
"robloxLsp.hint.paramName": false,
7576
// Show type hints at the parameter of the function.
76-
"Lua.hint.paramType": true,
77+
"robloxLsp.hint.paramType": true,
7778
// Hint type at assignment operation.
78-
"Lua.hint.setType": false,
79+
"robloxLsp.hint.setType": false,
80+
// Hint types at variables definitions.
81+
"robloxLsp.hint.variableType": true,
82+
// Hint return types at functions.
83+
"robloxLsp.hint.returnType": false,
7984
// Enable hover.
80-
"Lua.hover.enable": true,
85+
"robloxLsp.hover.enable": true,
8186
// When the value corresponds to multiple types, limit the number of types displaying.
82-
"Lua.hover.enumsLimit": 5,
87+
"robloxLsp.hover.enumsLimit": 5,
8388
// When hovering to view a table, limits the maximum number of previews for fields.
84-
"Lua.hover.previewFields": 20,
89+
"robloxLsp.hover.previewFields": 20,
8590
// Hover to view numeric content (only if literal is not decimal).
86-
"Lua.hover.viewNumber": true,
91+
"robloxLsp.hover.viewNumber": true,
8792
// Hover to view the contents of a string (only if the literal contains an escape
8893
// character).
89-
"Lua.hover.viewString": true,
94+
"robloxLsp.hover.viewString": true,
9095
// The maximum length of a hover to view the contents of a string.
91-
"Lua.hover.viewStringMax": 1000,
92-
// Adjust the enabled state of the built-in library. You can disable (or redefine) the non-
93-
// existent library according to the actual runtime environment.
94-
// * `default`: Indicates that the library will be enabled or disabled according to the
95-
// runtime version
96-
// * `enable`: always enable
97-
// * `disable`: always disable
98-
"Lua.runtime.builtin": {},
96+
"robloxLsp.hover.viewStringMax": 1000,
9997
// File encoding. The `ansi` option is only available under the `Windows` platform.
10098
// possible values: utf8, ansi
101-
"Lua.runtime.fileEncoding": "utf8",
102-
// Supports non-standard symbols. Make sure that your runtime environment supports these
103-
// symbols.
104-
"Lua.runtime.nonstandardSymbol": [],
99+
"robloxLsp.runtime.fileEncoding": "utf8",
105100
// `package.path`
106-
"Lua.runtime.path": [
101+
"robloxLsp.runtime.path": [
107102
"?.lua",
108103
"?/init.lua",
109104
"?/?.lua"
110105
],
111106
// Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-
112107
// server/wiki/Plugin) to learn more.
113-
"Lua.runtime.plugin": "",
114-
// The custom global variables are regarded as some special built-in variables, and the
115-
// language server will provide special support
116-
// The following example shows that 'include' is treated as' require '.
117-
// ```json
118-
// "Lua.runtime.special" : {
119-
// "include" : "require"
120-
// }
121-
// ```
122-
"Lua.runtime.special": {},
123-
// Allows Unicode characters in name.
124-
"Lua.runtime.unicodeName": false,
125-
// Lua runtime version.
126-
// possible values: Lua 5.1, Lua 5.2, Lua 5.3, Lua 5.4, LuaJIT
127-
"Lua.runtime.version": "Lua 5.4",
108+
"robloxLsp.runtime.plugin": "",
128109
// Enable signature help.
129-
"Lua.signatureHelp.enable": true,
130-
// Enable telemetry to send your editor information and error logs over the network. Read
131-
// our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-
132-
// Policy).
133-
"Lua.telemetry.enable": false,
110+
"robloxLsp.signatureHelp.enable": true,
111+
// Shows item documentation in signature help.
112+
"robloxLsp.signatureHelp.documentation": true,
134113
// Show progress bar in status bar.
135-
"Lua.window.progressBar": true,
114+
"robloxLsp.window.progressBar": true,
115+
// Show extension status in status bar.
116+
"robloxLsp.window.statusBar": true,
136117
// Ignored files and directories (Use `.gitignore` grammar).
137-
"Lua.workspace.ignoreDir": [
118+
"robloxLsp.workspace.ignoreDir": [
138119
".vscode"
139120
],
140121
// Ignore submodules.
141-
"Lua.workspace.ignoreSubmodules": true,
122+
"robloxLsp.workspace.ignoreSubmodules": true,
142123
// The directory path of the external function library.
143124
// The language service will additionally load the lua files in these directories, even if
144125
// they are not in the current workspace, for definition, completion and other features.
145-
"Lua.workspace.library": [],
126+
"robloxLsp.workspace.library": [],
146127
// Max preloaded files.
147-
"Lua.workspace.maxPreload": 1000,
128+
"robloxLsp.workspace.maxPreload": 1000,
148129
// Skip files larger than this value (KB) when preloading.
149-
"Lua.workspace.preloadFileSize": 100,
130+
"robloxLsp.workspace.preloadFileSize": 100,
150131
// Ignore files list in `.gitignore` .
151-
"Lua.workspace.useGitIgnore": true,
152-
// Add private third-party library configuration file paths here, please refer to the built-
153-
// in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)
154-
"Lua.workspace.userThirdParty": [],
132+
"robloxLsp.workspace.useGitIgnore": true,
133+
// The name of the .project.json file without the extension.
134+
"robloxLsp.workspace.rojoProjectFile": "default",
135+
// possible values: All Files, Rojo Project
136+
// What files should be preloaded.
137+
"robloxLsp.workspace.loadMode": "All Files",
138+
// Suggests Roblox Services that can be auto imported.
139+
"robloxLsp.misc.serviceAutoImport": true,
140+
// Enable Color Picker and Preview for Color3 functions.
141+
"robloxLsp.misc.color3Picker": true,
142+
// If enabled, shows a link to the source script when requiring a module.
143+
"robloxLsp.misc.goToScriptLink": true,
144+
// Command line parameters when starting the language service in VSCode.
145+
"robloxLsp.misc.parameters": "",
146+
// possible values: Disabled, Non Strict, Strict
147+
// Type checking mode (BETA).
148+
"robloxLsp.typeChecking.mode": "Disabled",
149+
// Type checking options.
150+
"robloxLsp.typeChecking.options": {},
151+
// Always show the full types in type checking errors. (`Array<string>` to `{[number]: string}`)"
152+
"robloxLsp.typeChecking.showFullType": false
155153
}
156154
}

0 commit comments

Comments
 (0)