summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/init.lua
diff options
context:
space:
mode:
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