-
-
Notifications
You must be signed in to change notification settings - Fork 387
Wingman: New AbstractLSP interface #2094
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
Conversation
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, 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. :) |
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.