diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 10:07:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-25 10:07:43 +0800 |
commit | 3aaa5b8e0f0d94247f8155c3802515bcc3292619 (patch) | |
tree | 68d232191c05fbdf657e919b00d2689aab051e7c /server/src/core/vm.lua | |
parent | 4820afbfec7a79b71267f8403980b18ed6b813e2 (diff) | |
parent | 21e3a0f6e980293a72c6ba9d70b408d6dc6a43ff (diff) | |
download | lua-language-server-3aaa5b8e0f0d94247f8155c3802515bcc3292619.zip |
Merge branch 'master' into global
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r-- | server/src/core/vm.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index 4eeb43c1..a0f82458 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -1426,7 +1426,11 @@ function mt:doActions(actions) for _, action in ipairs(actions) do self:doAction(action) if coroutine.isyieldable() then - coroutine.yield() + if self.lsp:isNeedCompile(self.uri) then + coroutine.yield() + else + coroutine.yield('stop') + end end end end |