summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/init.lua
diff options
context:
space:
mode:
authoruhziel <uhziel@gmail.com>2020-12-16 14:43:34 +0800
committeruhziel <uhziel@gmail.com>2020-12-16 14:43:34 +0800
commitbb3f925ee88f18b89f6cbeb8f6a91663e001a8e9 (patch)
treeecdfafc2def9700c6bc6a541a5916cb4e67b01a0 /script/core/diagnostics/init.lua
parent295d45c0e8b781e056138e869c5c32e876272b9c (diff)
downloadlua-language-server-bb3f925ee88f18b89f6cbeb8f6a91663e001a8e9.zip
config.diagnostics.neededFileStatus支持vscode配置
Diffstat (limited to 'script/core/diagnostics/init.lua')
-rw-r--r--script/core/diagnostics/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 15884758..2e721cf7 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -23,7 +23,8 @@ local function check(uri, name, results)
local level = config.config.diagnostics.severity[name]
or define.DiagnosticDefaultSeverity[name]
- local neededFileStatus = define.DiagnosticDefaultNeededFileStatus[name]
+ local neededFileStatus = config.config.diagnostics.neededFileStatus[name]
+ or define.DiagnosticDefaultNeededFileStatus[name]
if neededFileStatus == 'Opened' and not files.isOpen(uri) then
return
end