-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
SCM: editor selection not applied when jumping from diff back to editor #30674
Comments
I wonder how long it would take for you to notice this. Dependent on #30829 |
@joaomoreno you do not really depend on #30829 imho, you can always do |
Working. |
Now it is... |
Actually I found another case where it was not working: When having a file on the index. Verify: you can jump between file and diff by maintaining the selection and it works if a change is staged or not. |
Needs to only work from diff -> editor. Verified. The other direction is not working. Hope that is expected. |
@dbaeumer it should work in both directions both if a file is in "Working Files" as well as "Index". |
@bpasero the other direction didn't work for me. It always selected the first diff regardless of what I had selected before. Leave it up to you and @joaomoreno to reopen or to create a new issue. |
It depends on where the command is executed from:
|
We now nicely restore the selection when jumping from editor to the diff editor but we do not seem to do the same thing when going from diff editor to normal editor (which is actually my main use case).
I think the missing piece is that
vscode.open
allows to provide the same editor options and git extension to adopt that. Created PR #30675 for the missing API in the command.The text was updated successfully, but these errors were encountered: