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

Add overridable methods to LspExecuteCommand #2024

Merged
merged 2 commits into from
Aug 21, 2022
Merged

Conversation

rchl
Copy link
Member

@rchl rchl commented Aug 20, 2022

A simple addition to make it so that plugins can easily use it with custom response handlers without re-implementing the run method.

I've changed the default success handler to not stringify the response as the response can be anything, including a complex object, so it doesn't make sense to assume that it's something that can be presented in the status bar.

Resolves #1902

@rwols rwols merged commit 566a49e into main Aug 21, 2022
@rwols rwols deleted the feat/execute_methods branch August 21, 2022 15:49
rchl added a commit that referenced this pull request Aug 25, 2022
* main:
  Delay re-calculation of code lenses and inlay hints for currently not visible views
  Add overridable methods to LspExecuteCommand (#2024)
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.

Provide an optional response handler in LspExecuteCommand
2 participants