summaryrefslogtreecommitdiff
path: root/server/src/core/vm.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/vm.lua')
-rw-r--r--server/src/core/vm.lua6
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