Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that a completion result has 'isIncomplete' #995

Merged
merged 1 commit into from Mar 19, 2022

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.

None yet

2 participants