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

Allow to bind diffEditor.revert to keyboard #225881

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hron
Copy link
Contributor

@hron hron commented Aug 17, 2024

There is no way to revert a hunk in diff editor via keyboard. diffEditor.revert can be used only via clicking on the gutter icon.

This commit extends this function, so it uses current position or selection to detect which hunks have to be reverted.

Closes #225879

@hron hron force-pushed the diff-editor-revert-keyboard-fix branch 2 times, most recently from 43b3fbd to a910f63 Compare August 17, 2024 15:21
@hron
Copy link
Contributor Author

hron commented Aug 17, 2024

@microsoft-github-policy-service agree

@hediet hediet added this to the August 2024 milestone Aug 19, 2024
@hediet hediet modified the milestones: August 2024, September 2024 Aug 29, 2024
@hediet hediet modified the milestones: September 2024, October 2024 Sep 26, 2024
@hediet hediet modified the milestones: October 2024, November 2024 Oct 24, 2024
@hron hron force-pushed the diff-editor-revert-keyboard-fix branch from a910f63 to fe5a38f Compare November 10, 2024 19:20
There is no way to revert a hunk in diff editor via keyboard.
`diffEditor.revert` can be used only via clicking on the gutter icon.

This commit extends this function, so it uses current position or
selection to detect which hunks have to be reverted.

Closes microsoft#225879
@hron hron force-pushed the diff-editor-revert-keyboard-fix branch from fe5a38f to 3b61d8d Compare November 10, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DiffEditor: Revert a hunk or selection via keyboard
2 participants