-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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] open 'diff-editors' with a single-click #6481
Conversation
It looks like:
I'm not sure, we need to get a version before the scm extension and see how the git widget used to work, then fix that it works like a before. I think it got broken during this refactoring. |
@akosyakov I've verified by building a v0.6.0 Theia application (pre-scm) and the single-click still does not add much value. When single-clicking, the node is selected only, while double-clicking the node is opened as a diff-editor. I'm wondering what the added value is of having the pre-existing behavior for the single-click or if we should go towards VS Code and open the diff-editor with a single-click like this PR does. |
@vince-fugnitto agree that we should go VS Code.
From code it looked that we used to open a diff-editor and select the first change. Maybe it was broken there as well. Anyway let's do as in VS Code. |
Okay sounds great, please let me know if anything needs to be adjusted in the pull request. |
I've just tested with VS Code and it actually based on
It also seems that this preference was renamed to |
Ahh I see. I might be mistaken but I thought perhaps that preference was more useful for them since they now support the |
How it is implemented does not matter from user perspective, does it? btw it was always a tree in VS Code. |
Yes exactly it shouldn't matter from a user's perspective. |
I meant for now:
|
Sounds good, I was just wondering if it is possible to inject the |
4943eeb
to
30c229e
Compare
I've updated the PR based on your suggestion :) |
f7b11c7
to
ae4b83d
Compare
37fac13
to
f9a9e16
Compare
@vince-fugnitto Please test that when you click (regardless in which mode), a resource is selected. |
Fixes #6479 - updated the opening of `diff-editors` from the `scm` widget to be triggered based on the preference `workbench.list.openMode`. - updated the preference name `list.openMode` to `workbench.list.openMode`. Signed-off-by: vince-fugnitto <[email protected]>
f9a9e16
to
3dead8b
Compare
@akosyakov please let me know if everything has been addressed whenever you get a chance :) |
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.
works nicely now! thank you
Thank you for your help in making it better :) |
What it does
Fixes #6479
diff-editors
through thescm
widget to respect the preferenceworkbench.list.openMode
. The following preference describes two possible valuessingleClick
anddoubleClick
. WhensingleClick
is enabled, clicking the change in thescm
widget opens the diff-editor directly whiledoubleClick
preference requires two clicks.list.openMode
toworkbench.list.openMode
.How to test
"workbench.list.openMode": "singleClick"
- diff-editor is opened with one click"workbench.list.openMode": "doubleClick"
- diff-editor is opened with two clicksReview checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]