Skip to content

Conversation

yoshi1123
Copy link
Contributor

@yoshi1123 yoshi1123 commented Mar 19, 2022

Any key in the table of a returned response that has a value of 'nil' will be
excluded from the response's result, and so it needs to be set to
'false'.

In other words, for a textDocument/completion response to include 'isIncomplete' in the result, the table returned in m.register 'textDocument/complete' must have isIncomplete set to false. If it is set to nil, then it will be excluded from the response.

isIncomplete is a required required parameter in a 'textDocument/completion' response (https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionList).

- 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'.
@sumneko sumneko merged commit 0173dca into LuaLS:master Mar 19, 2022
@sumneko
Copy link
Collaborator

sumneko commented Mar 19, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants