Skip to content

Return an object from completions-full #17727

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

Closed
wants to merge 1 commit into from

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented Aug 10, 2017

Simple completions return an array but full completions return an object
(containing an array). We used to return null for both case when there
were no completions to return, but in
f124e19 we stopped returning
undefined for requests that require a response. We started returning
[] instead, in both cases, which caused problems when deserializing
responses to completions-full. Instead, return [] for simple
completions and and empty object (containing an empty array) for full
completions.

Fixes #

Simple completions return an array but full completions return an object
(containing an array).  We used to return null for both case when there
were no completions to return, but in
f124e19 we stopped returning
`undefined` for requests that require a response.  We started returning
`[]` instead, in both cases, which caused problems when deserializing
responses to `completions-full`.  Instead, return `[]` for simple
completions and and empty object (containing an empty array) for full
completions.
@amcasey amcasey requested review from uniqueiniquity, minestarks and a user August 10, 2017 18:36
@msftclas
Copy link

@amcasey,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@amcasey
Copy link
Member Author

amcasey commented Aug 14, 2017

Looks like we're going back to undefined (see #17781).

@amcasey amcasey closed this Aug 14, 2017
@amcasey amcasey deleted the CompletionArray branch September 7, 2017 23:34
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants