diff options
author | yoshi1123 <yoshi1@tutanota.com> | 2022-03-19 00:46:28 -0400 |
---|---|---|
committer | yoshi1123 <yoshi1@tutanota.com> | 2022-03-19 00:46:28 -0400 |
commit | f337df70ccb50b5524fe55e8034d4f601defea76 (patch) | |
tree | 5b2a560542c403e9ddd52fd5775a1db5795d3090 /script | |
parent | 20d4be8bc74d6a78372f50112288fb6c4406b841 (diff) | |
download | lua-language-server-f337df70ccb50b5524fe55e8034d4f601defea76.zip |
Ensure that a completion result has 'isIncomplete'
- Any key in the table returned that has a value of 'nil' will be
excluded from the response's result, and so it needs to be set to
'false'.
Diffstat (limited to 'script')
-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, |