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

Revert individual change from quick diff view #37

Open
mjcrouch opened this issue Feb 10, 2020 · 3 comments
Open

Revert individual change from quick diff view #37

mjcrouch opened this issue Feb 10, 2020 · 3 comments
Labels
blocked Unable to progress - e.g. waiting for VS Code API to be updated enhancement New feature or request

Comments

@mjcrouch
Copy link
Owner

mjcrouch commented Feb 10, 2020

The built-in git extension allows individual changes to be reverted using a context button on the quick diff view.

quick diff

This should be implemented in the perforce extension.
docs
the git source can be used as an example - I suspect it may actually be simpler as we don't have to worry about staged / unstaged stuff
context location

@mjcrouch mjcrouch added the enhancement New feature or request label Feb 10, 2020
@mjcrouch
Copy link
Owner Author

turns out we can't implement this yet as the API is still proposed and not final

microsoft/vscode#84899

@mjcrouch mjcrouch added the blocked Unable to progress - e.g. waiting for VS Code API to be updated label Apr 18, 2020
@maciejmatczak
Copy link

Ehhmm, guys I just got the same issue, but also found that one:

Click with right mouse button:
image

I am only able to get this menu through right click on deletions though. It's available through a gray light bulb as well on a change view. But when additions and deletions are wrapped within the one change, both are reverted.

Hmmm, I am guessing it comes from native diff viewer, right? The one when you click the a modified file on the SCM tab.

@mjcrouch
Copy link
Owner Author

definitely part of the built in diff editor. I hadn't noticed that. Funny that it is included by default for those but not for the quick diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Unable to progress - e.g. waiting for VS Code API to be updated enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants