Skip to content

Commit a3835a0

Browse files
authored
Merge pull request #1759 from CppCXY/master
修复补全性能问题
2 parents 6d740a7 + 118fa32 commit a3835a0

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)