summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-21 17:44:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-21 17:44:30 +0800
commit2126add7b4598b3bfcebe287f2f0609001c7a9f7 (patch)
tree0c4ca2c05bf085d170b0f05e2beffdf5f0b0458b /server/src/core
parente9818422596439666f2cf17d6fe83c472809320d (diff)
downloadlua-language-server-2126add7b4598b3bfcebe287f2f0609001c7a9f7.zip
诊断可以挂起
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/diagnostics.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index 091012f4..a4f6bbcc 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -230,6 +230,9 @@ function mt:doDiagnostics(func, code, callback)
data.finish = finish
self.datas[#self.datas+1] = data
end)
+ if coroutine.isyieldable() then
+ coroutine.yield()
+ end
end
return function (vm, lines, uri)