summaryrefslogtreecommitdiff
path: root/script/core/folding.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/folding.lua')
-rw-r--r--script/core/folding.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/folding.lua b/script/core/folding.lua
index bd3ba5f3..2cf06d46 100644
--- a/script/core/folding.lua
+++ b/script/core/folding.lua
@@ -145,6 +145,7 @@ local Care = {
end,
}
+---@async
return function (uri)
local state = files.getState(uri)
local text = files.getText(uri)
@@ -154,7 +155,7 @@ return function (uri)
local regions = {}
local status = {}
- guide.eachSource(state.ast, function (source)
+ guide.eachSource(state.ast, function (source) ---@async
local tp = source.type
if Care[tp] then
await.delay()