-
Notifications
You must be signed in to change notification settings - Fork 416
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
LSP: update OmniSharpCodeHandler so we support codeAction/resolve #2147
LSP: update OmniSharpCodeHandler so we support codeAction/resolve #2147
Conversation
@david-driscoll I need some guidance how to figure out if client supports
the PR is marked as a draft as I cannot discover |
119157b
to
dcea55f
Compare
Ok, I figured it out |
@filipw this ready for review functionally nothing much changes but we now will use std functionality from LSP to resolve-on-demand code action edits for older lsp clients we will fallback to eager edit resolving (which can be slow on large projects) |
oops, some of the tests are still failing.. |
This feature was introduced in LSP 3.16.0 https://microsoft.github.io/language-server-protocol/specification#codeAction_resolve and allows us to drop the hack where we were introducing a special "omnisharp/executeCodeAction" command to delay the resolution of code action changesets until user actually selets that code action: see OmniSharp#1814. Related to: - OmniSharp#2068 - OmniSharp#1814
32a596c
to
102a0de
Compare
@david-driscoll maybe you have some feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@david-driscoll could you take a look?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks
superseded by #2467 |
This feature was introduced in LSP
3.16.0 https://microsoft.github.io/language-server-protocol/specification#codeAction_resolve
and allows us to drop the hack where we were introducing a special
"omnisharp/executeCodeAction" command to delay the resolution of code
action changesets until user actually selets that code
action: see #1814.
Related to: