summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r--server/src/core/document_symbol.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index ac81277c..39257ba3 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -228,6 +228,9 @@ local function packChild(symbols, finish, kind)
t = {}
end
t[#t+1] = symbol
+ if coroutine.isyieldable() then
+ coroutine.yield()
+ end
end
return t
end
@@ -249,6 +252,9 @@ return function (vm)
buildSource(vm, source, used, function (data)
symbols[#symbols+1] = data
end)
+ if coroutine.isyieldable() then
+ coroutine.yield()
+ end
end
local packedSymbols = packSymbols(symbols)