summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-01 22:48:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-01 22:48:04 +0800
commit9433b5540292a7256aeef4176cca50002f801b40 (patch)
tree3f5eded8dfd7cadb49241368ba65a34f2efe31b4 /script
parent24973ecf4ee1696e5354babae744ad3b8262c610 (diff)
downloadlua-language-server-9433b5540292a7256aeef4176cca50002f801b40.zip
resolve #465
Diffstat (limited to 'script')
-rw-r--r--script/provider/diagnostic.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 88fbbc4e..b385b4e3 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -183,8 +183,7 @@ function m.doDiagnostic(uri)
return
end
uri = files.asKey(uri)
- if (files.isLibrary(uri) or ws.isIgnored(uri))
- and not files.isOpen(uri) then
+ if files.isLibrary(uri) or ws.isIgnored(uri) then
return
end