summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-05 21:01:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-05 21:01:45 +0800
commit36a0e0f40dafdab77dd3df2ead8bceb92e3ae193 (patch)
treeef9ebec7368bc53ade8f4d3a23241c1b2a0c953b /script/provider
parentd99e03fd46830c31b14646f4ca6344f660059af3 (diff)
downloadlua-language-server-36a0e0f40dafdab77dd3df2ead8bceb92e3ae193.zip
`diagnostics.workspaceRate` only effect workspace
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/diagnostic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua
index 0e2fbfde..c01c56b0 100644
--- a/script/provider/diagnostic.lua
+++ b/script/provider/diagnostic.lua
@@ -237,7 +237,7 @@ function m.doDiagnostic(uri, isScopeDiag)
local lastPushClock = os.clock()
---@async
- xpcall(core, log.error, uri, function (result)
+ xpcall(core, log.error, uri, isScopeDiag, function (result)
diags[#diags+1] = buildDiagnostic(uri, result)
if not isScopeDiag and os.clock() - lastPushClock >= 0.2 then