summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-06 14:41:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-06 14:41:49 +0800
commit8b3350de3d3e197a39b50135cbca0989e00fe32a (patch)
tree55d5ac626313b94b32e26c7240cbda6874a18439 /script/core
parent81651a70bf8e8e45e829c7a1a2a7d7bd46bb805b (diff)
downloadlua-language-server-8b3350de3d3e197a39b50135cbca0989e00fe32a.zip
update `isIncomplete`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion/completion.lua5
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