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

Wingman: New AbstractLSP interface #2094

Merged
merged 16 commits into from Aug 14, 2021
Merged

Conversation

isovector
Copy link
Collaborator

This PR introduces a new Interaction type, which bundles up all of the repeated machinery necessary to implement commands/handlers. It provides the same API to code lenses and actions, and abstracts away a lot of the pain of dealing with LSP directly.

I've ported Wingman's code actions over to this new system. This is purely a refactoring, but cleans up a lot of the technical debt I'd been accumulating.

Copy link
Member

@jneira jneira left a comment

Choose a reason for hiding this comment

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

lgtm, do you think it (or parts of it) could be generalized to other plugins and move it to hls-plugin-api?

@isovector
Copy link
Collaborator Author

isovector commented Aug 13, 2021

do you think it (or parts of it) could be generalized to other plugins and move it to hls-plugin-api?

Yeah, probably, but I want to play with it for a while to make sure there are no glaring problems. :)

@isovector isovector added the merge me Label to trigger pull request merge label Aug 13, 2021
@mergify mergify bot merged commit 5d83b63 into haskell:master Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants