Skip to content

Return an object from completions-full - #17727

Closed
Andrew Casey (amcasey) wants to merge 1 commit into
microsoft:masterfrom
amcasey:CompletionArray
Closed

Return an object from completions-full#17727
Andrew Casey (amcasey) wants to merge 1 commit into
microsoft:masterfrom
amcasey:CompletionArray

Conversation

@amcasey

Copy link
Copy Markdown
Member

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.
@msftclas

Andrew Casey (@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
Copy Markdown
Member Author

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

@amcasey
Andrew Casey (amcasey) deleted the CompletionArray branch September 7, 2017 23:34
@microsoft 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