summaryrefslogtreecommitdiff
path: root/script/config
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-24 18:42:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-24 18:42:22 +0800
commit8b57fe8867cf2a82025b8c0b18305ea24b063f4f (patch)
tree51b708ee01e34c67e2c7531f4f8c770071f0bd8b /script/config
parent8a2de634b1db860a009dafb5144c0d38eeacc5ad (diff)
downloadlua-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.lua10
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),