summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authoryoshi1123 <yoshi1@tutanota.com>2022-03-19 00:46:28 -0400
committeryoshi1123 <yoshi1@tutanota.com>2022-03-19 00:46:28 -0400
commitf337df70ccb50b5524fe55e8034d4f601defea76 (patch)
tree5b2a560542c403e9ddd52fd5775a1db5795d3090 /script
parent20d4be8bc74d6a78372f50112288fb6c4406b841 (diff)
downloadlua-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.lua3
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,