-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: code actions - document edits #478
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
21bf614
wip: Code actions
archseer 3a7b921
fix(term): use current macro instead Context::context
gbaranski cdfb6f2
feat(lsp): set code_action capabilities
gbaranski bc62f03
feat(term): set SPC-a to code_action
gbaranski 5d253df
feat(term): wip on applying code actions
gbaranski eeca3b5
deps: `cargo update`
gbaranski 70db2f1
feat(term): applying code actions edits
gbaranski 9dcdb55
fix(term): cleanup of apply_edit
gbaranski 32facf1
fix(term): applying edits as a whole thing instead one by one
gbaranski 70dfc98
refactor(term): move apply_edits below
gbaranski 1661bf0
fix(term): improve unimplemented messages for further investigation
gbaranski daeb8e5
fix(term): change code action command comment
gbaranski 1dfc39a
Merge branch 'master' into code-action
gbaranski b3f0d72
fix(term): add matching `}`
gbaranski 36499a8
fix(term): cleanup, todo!() on workspace edit
gbaranski 02c13b8
fix(term): remove unrelated workspace_symbol_picker
gbaranski 6dd84e1
fix(term): apply cargo-clippy suggestions
gbaranski 4907c63
fix(term): replace todo!'s with editor.set_error
gbaranski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Undo doesn't work after applying a change:
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.
It did work after pressing ESC, but with this change works even without it. I can't commit changes since the PR have been already merged. Maybe you could create a new PR with this change?
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.
Ah, ESC is bound to
normal_mode
command (even inside normal mode) and it has anappend_changes_to_history
call. I see you created a new PR 👍🏾