Skip to content

Commit 118fa32

Browse files
committed
修复补全性能问题
1 parent 6d740a7 commit 118fa32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/core/completion/completion.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ local function checkFieldOfRefs(refs, state, word, startPos, position, parent, o
534534
local funcs = {}
535535
local count = 0
536536
for _, src in ipairs(refs) do
537+
if count > 100 then
538+
break
539+
end
537540
local _, name = vm.viewKey(src, state.uri)
538541
if not name then
539542
goto CONTINUE

0 commit comments

Comments
 (0)