diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:44:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-21 17:44:30 +0800 |
commit | 2126add7b4598b3bfcebe287f2f0609001c7a9f7 (patch) | |
tree | 0c4ca2c05bf085d170b0f05e2beffdf5f0b0458b /server/src/core/diagnostics.lua | |
parent | e9818422596439666f2cf17d6fe83c472809320d (diff) | |
download | lua-language-server-2126add7b4598b3bfcebe287f2f0609001c7a9f7.zip |
诊断可以挂起
Diffstat (limited to 'server/src/core/diagnostics.lua')
-rw-r--r-- | server/src/core/diagnostics.lua | 3 |
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) |