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

Completion Request should return CompletionList #1

Merged

Conversation

kaloyan-raev
Copy link

As discussed in microsoft/language-server-protocol#39 statically typed languages like Java do not support mixed return types, which in the case of Completion Request is CompletionItem[] | CompletionList.

Thus Typefox - the Java client of the language server protocol - accepts only CompletionList, which contains CompletionItem[].

In order to work with Eclipse Che and other IDEs using the Typefox client, the Completion Request handler in the PHP language server should return CompletionList instead of CompletionItems[].

As discussed in
microsoft/language-server-protocol#39
statically typed languages like Java do not support mixed return types,
which in the case of Completion Request is `CompletionItem[] |
CompletionList`.

Thus Typefox - the Java client of the language server protocol - accepts
only `CompletionList`, which contains `CompletionItem[]`.

In order to work with Eclipse Che and other IDEs using the Typefox
client, the Completion Request handler in the PHP language server should
return `CompletionList` instead of `CompletionItems[]`.
@mniewrzal mniewrzal merged commit b72c6c0 into mniewrzal:keyword_completion Sep 13, 2016
@kaloyan-raev kaloyan-raev deleted the keyword_completion branch September 14, 2016 07:58
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