summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-16 15:28:31 +0800
committerGitHub <noreply@github.com>2020-12-16 15:28:31 +0800
commit19dcd9a83dee0a641a9c2bf8326626c47c66b27d (patch)
treef38d37903ae6a05da24964a824672f4776fe57b5
parent02b968ec9a7135154397619cf8da7f7c90af4d7a (diff)
parentbb3f925ee88f18b89f6cbeb8f6a91663e001a8e9 (diff)
downloadlua-language-server-19dcd9a83dee0a641a9c2bf8326626c47c66b27d.zip
Merge pull request #305 from uhziel/config-diagnostic-needFileStatus
config.diagnostics.neededFileStatus支持通过vscode配置
-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 beac2c04..bc3f3d8c 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -24,7 +24,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