-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat: add fixit lsp
subcommand
#390
Conversation
70ad9f7
to
d4b6989
Compare
fixit lsp
subcommand
2551e15
to
1d748d8
Compare
Sorry for the delay. I'll try to review this and your other PR's some time next week. |
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.
Sorry for the delay in reviewing this, and I really appreciate your time in putting this together. My only experience with writing an LSP is using the vscode templates, so forgive me if some of this goes against common patterns. I'm mostly interested in keeping the code more readable and maintainable, and I had a bit of difficulty following what was happening here. 😅
I don't want to impose on your time too much, so just let me know if you'd rather me be the one to adopt these suggestions, and I'll make sure to keep you as the primary author on the PR.
Cheers!
No worries, might be delayed as I don't have Wi-fi this month, but I'm happy to make the changes as they all seem sensible! |
d3f16a3
to
6c79b05
Compare
Updated, sorry for the delay! |
7fdf353
to
9dcd1ec
Compare
This is cool! Hope it will get merged 🤞 |
Support for: - [x] `textDocument/didOpen`, `textDocument/didChange` -> `textDocument/publishDiagnostics` - [x] `textDocument/formatting` No support yet: - [ ] `textDocument/codeAction`, `workspace/executeCommand` - [ ] `workspace/didChangeWatchedFiles` to invalidate the config cache test: Added new smoke test for the new `fixit lsp` subcommand.
Thank you for contributing this work and for responding to feedback. Look forward to this being in a future release! |
resolves #387 #122
Note: easier to read in unified view since it's new code.
Note: uses the popular pygls (Apache 2.0) implementation of the protocol.
demo.mp4
Summary
Support for:
textDocument/didOpen
,textDocument/didChange
->textDocument/publishDiagnostics
textDocument/formatting
Not supported yet
textDocument/codeAction
,workspace/executeCommand
(possibly blocked on Automatic #lint-fixme suppressions #352 Better story around lint rules modifying imports #358)workspace/didChangeWatchedFiles
to invalidate the config cacheIf this PR gets merged I will create follow-up issues for these items.
Test Plan
Added new smoke test for the new
fixit lsp
subcommand.