From f337df70ccb50b5524fe55e8034d4f601defea76 Mon Sep 17 00:00:00 2001 From: yoshi1123 Date: Sat, 19 Mar 2022 00:46:28 -0400 Subject: [PATCH] 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'. --- script/provider/provider.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/provider/provider.lua b/script/provider/provider.lua index eef22b21f..eb4a274ca 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,