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

Move LSP Completion to the new CompletionService #2074

Merged
merged 4 commits into from
Feb 23, 2021

Conversation

333fred
Copy link
Contributor

@333fred 333fred commented Jan 26, 2021

This is a bit overdue, but as vscode will hopefully be moving to the LSP shortly, we can look at starting to convert its providers over to the LSP. As the new service was designed to be a mirror of LSP, this simplifies the implementation of the handler: just convert the request to the internal one, pass through, and convert the internal result back to LSP's version. As part of this, I ported all of the completion tests in the regular service to the LSP, with only a few small changes around host setup and where names/nesting differed a bit from the LSP.

This is a bit overdue, but as vscode will hopefully be moving to the LSP shortly, we can look at starting to convert its providers over to the LSP. As the new service was designed to be a mirror of LSP, this simplifies the implementation of the handler: just convert the request to the internal one, pass through, and convert the internal result back to LSP's version. As part of this, I ported all of the completion tests in the regular service to the LSP, with only a few small changes around host setup and where names/nesting differed a bit from the LSP.
Copy link
Member

@filipw filipw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice, thank you

@333fred
Copy link
Contributor Author

333fred commented Jan 26, 2021

Hmm, getting cancellations I wasn't getting locally. Will have a look tonight.

@filipw filipw merged commit fbc7b07 into OmniSharp:master Feb 23, 2021
@filipw
Copy link
Member

filipw commented Feb 23, 2021

as discussed on Slack - this is good to go

@333fred 333fred deleted the lsp-completion branch February 23, 2021 15:16
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