diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-13 20:52:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-13 20:52:53 +0800 |
commit | a3835a08fd1736cc7c897f3e5e1779e3c85fc35a (patch) | |
tree | bc8d97c263bc3090762508ad31d7c38caec23ede | |
parent | 6d740a76ce170c396108e8bfc26b1286ac32c62f (diff) | |
parent | 118fa32384c01f60dad211e891918c4ff941604a (diff) | |
download | lua-language-server-a3835a08fd1736cc7c897f3e5e1779e3c85fc35a.zip |
Merge pull request #1759 from CppCXY/master
修复补全性能问题
-rw-r--r-- | script/core/completion/completion.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index cbc8cd07..ffdf6413 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -534,6 +534,9 @@ local function checkFieldOfRefs(refs, state, word, startPos, position, parent, o local funcs = {} local count = 0 for _, src in ipairs(refs) do + if count > 100 then + break + end local _, name = vm.viewKey(src, state.uri) if not name then goto CONTINUE |