diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-19 16:46:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 16:46:57 +0800 |
commit | 0173dcae57bef206f7c20c0cd3ecb9fb527570bf (patch) | |
tree | 51465b1f01dea5a732e2901683379774c1c5a919 | |
parent | 686f56f839adca75767bf2cf4623536e70f6b58b (diff) | |
parent | f337df70ccb50b5524fe55e8034d4f601defea76 (diff) | |
download | lua-language-server-0173dcae57bef206f7c20c0cd3ecb9fb527570bf.zip |
Merge pull request #995 from yoshi1123/incompletefix
Ensure that a completion result has 'isIncomplete'
-rw-r--r-- | script/provider/provider.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index eef22b21..eb4a274c 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -618,6 +618,9 @@ m.register 'textDocument/completion' { end items[i] = item end + if result.incomplete == nil then + result.incomplete = false + end return { isIncomplete = result.incomplete, items = items, |