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

LSP: fix performance of the textDocument/codeAction request #1814

Merged

Conversation

razzmatazz
Copy link
Contributor

@razzmatazz razzmatazz commented May 28, 2020

This improves performance of codeAction request on large code bases
quite a bit by making the response from textDocument/codeAction to be more
lightweight. This is accomplished by adding a separate command handler for
"omnisharp/executeCodeAction" that actually sends the changes to client
with "workspace/applyEdit".

This improves performance of codeAction request on large codes base
quite a bit by making the response from textDocument/codeAction to be more
lightweight. This is accomplished by adding a separate command handler for
"omnisharp/executeCodeAction" that actually sends the changes to client
with "workspace/applyEdit".
@filipw filipw requested a review from david-driscoll June 26, 2020 06:05
Copy link
Member

@david-driscoll david-driscoll left a comment

Choose a reason for hiding this comment

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

I have updated against the latest and went ahead and added in the related unit tests (stuff that wasn't available at the time this PR was created!)

@david-driscoll david-driscoll merged commit 96600de into OmniSharp:master Aug 3, 2020
@david-driscoll
Copy link
Member

Thanks @razzmatazz

razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request May 2, 2021
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
razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request May 2, 2021
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
razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request May 8, 2021
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
razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request May 8, 2021
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
razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request May 12, 2021
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
razzmatazz pushed a commit to razzmatazz/omnisharp-roslyn that referenced this pull request Aug 3, 2021
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
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.

3 participants