-
Notifications
You must be signed in to change notification settings - Fork 39
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: Implement code actions for new fixes #661
Conversation
b84da98
to
8adb96d
Compare
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.
Looks great! Just some questions.
"extract target and location": { | ||
ExecuteCommandParams: types.ExecuteCommandParams{ | ||
Command: "example", | ||
Arguments: []interface{}{"target", "1", 2}, // different types for testing, but should be strings |
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.
I suppose we could have standardized on args just being a single object for all commands, which we could serialize into a struct. But this might be more aligned with what the LSP "expects".
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.
Yeah I wasn't so sure about this but figured that we'd go with this until we ran into some issues. It's all internal so seemed ok to go with this for now.
#653 added fixes for no-whitespace-comment and use-assignment-operator. This PR adds code actions for these in the regal lsp. Signed-off-by: Charlie Egan <[email protected]>
8adb96d
to
3684090
Compare
Signed-off-by: Charlie Egan <[email protected]>
c9dd044
to
3a1d447
Compare
* lsp: Implement code actions for new fixes StyraInc#653 added fixes for no-whitespace-comment and use-assignment-operator. This PR adds code actions for these in the regal lsp. Signed-off-by: Charlie Egan <[email protected]> * Move commands under a fix namespace Signed-off-by: Charlie Egan <[email protected]> --------- Signed-off-by: Charlie Egan <[email protected]>
#653 added fixes for no-whitespace-comment and use-assignment-operator. This PR adds code actions for these in the regal lsp.
Fixes #659
Fixes #649