diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-24 18:42:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-24 18:42:22 +0800 |
commit | 8b57fe8867cf2a82025b8c0b18305ea24b063f4f (patch) | |
tree | 51b708ee01e34c67e2c7531f4f8c770071f0bd8b /script/config | |
parent | 8a2de634b1db860a009dafb5144c0d38eeacc5ad (diff) | |
download | lua-language-server-8b57fe8867cf2a82025b8c0b18305ea24b063f4f.zip |
add settings for file scheme
`workspace.supportScheme`: `["file", "untitled", "git"]`
`diagnostics.disableScheme`: `["git"]`
Diffstat (limited to 'script/config')
-rw-r--r-- | script/config/config.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/config/config.lua b/script/config/config.lua index bde214b0..538b18ab 100644 --- a/script/config/config.lua +++ b/script/config/config.lua @@ -167,6 +167,9 @@ local Template = { >> util.deepCopy(define.DiagnosticDefaultSeverity), ['Lua.diagnostics.neededFileStatus'] = Type.Hash(Type.String, Type.String) >> util.deepCopy(define.DiagnosticDefaultNeededFileStatus), + ['Lua.diagnostics.disableScheme'] = Type.Hash(Type.String, Type.Boolean, ';') >> { + ['git'] = true, + }, ['Lua.diagnostics.workspaceDelay'] = Type.Integer >> 5, ['Lua.diagnostics.workspaceRate'] = Type.Integer >> 100, ['Lua.diagnostics.libraryFiles'] = Type.String >> 'Opened', @@ -179,6 +182,11 @@ local Template = { ['Lua.workspace.library'] = Type.Hash(Type.String, Type.Boolean, ';'), ['Lua.workspace.checkThirdParty'] = Type.Boolean >> true, ['Lua.workspace.userThirdParty'] = Type.Array(Type.String), + ['Lua.workspace.supportScheme'] = Type.Hash(Type.String, Type.Boolean, ';') >> { + ['file'] = true, + ['untitled'] = true, + ['git'] = true, + }, ['Lua.completion.enable'] = Type.Boolean >> true, ['Lua.completion.callSnippet'] = Type.String >> 'Disable', ['Lua.completion.keywordSnippet'] = Type.String >> 'Replace', @@ -213,6 +221,8 @@ local Template = { ['Lua.format.defaultConfig'] = Type.Hash(Type.String, Type.String) >> {}, ['Lua.telemetry.enable'] = Type.Or(Type.Boolean >> false, Type.Nil) >> nil, + + -- VSCode ['files.associations'] = Type.Hash(Type.String, Type.String), ['files.exclude'] = Type.Hash(Type.String, Type.Boolean), ['editor.semanticHighlighting.enabled'] = Type.Or(Type.Boolean, Type.String), |