summaryrefslogtreecommitdiff
path: root/script/provider/diagnostic.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-28 19:23:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-28 19:23:31 +0800
commitf71265ecfa87b960972ac08902b3eb417d926b34 (patch)
tree340a609a18169f57ec83cf95599909a98007d396 /script/provider/diagnostic.lua
parentb01133ed4c1b02105b2894eb596c5706fb633246 (diff)
downloadlua-language-server-f71265ecfa87b960972ac08902b3eb417d926b34.zip
don't do workspace for fallback
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r--script/provider/diagnostic.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 22287698..58179514 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -460,6 +460,9 @@ end
---@async
function m.awaitDiagnosticsScope(suri, callback)
local scp = scope.getScope(suri)
+ if scp.type == 'fallback' then
+ return
+ end
while loading.count() > 0 do
await.sleep(1.0)
end