diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-06 14:41:49 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-06 14:41:49 +0800 |
commit | 8b3350de3d3e197a39b50135cbca0989e00fe32a (patch) | |
tree | 55d5ac626313b94b32e26c7240cbda6874a18439 /script/core | |
parent | 81651a70bf8e8e45e829c7a1a2a7d7bd46bb805b (diff) | |
download | lua-language-server-8b3350de3d3e197a39b50135cbca0989e00fe32a.zip |
update `isIncomplete`
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion/completion.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 28e9d108..44efc72b 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -645,8 +645,11 @@ local function checkCommon(state, word, position, results) for _, data in ipairs(keyWordMap) do used[data[1]] = true end - if config.get(state.uri, 'Lua.completion.workspaceWord') and #word >= 2 then + if not config.get(state.uri, 'Lua.completion.workspaceWord') + or #word >= 2 then results.complete = true + end + if config.get(state.uri, 'Lua.completion.workspaceWord') and #word >= 2 then local myHead = word:sub(1, 2) for uri in files.eachFile() do if #results >= 100 then |