From 9433b5540292a7256aeef4176cca50002f801b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 1 Jul 2021 22:48:04 +0800 Subject: resolve #465 --- script/provider/diagnostic.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script') 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 -- cgit v1.2.3