-
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
[navigator] Added toolbar to disable auto sync #5986
Conversation
PR template is missing 🙄 |
Should not it auto reveal when enabled? It keeps showing the old file regardless of a currently selected editor. I usually use it feature in Eclipse as follow:
It does not happen with this PR. |
db8fae8
to
f53fa84
Compare
@@ -22,16 +22,16 @@ import { createPreferenceProxy, PreferenceProxy, PreferenceService, PreferenceCo | |||
export const FileNavigatorConfigSchema: PreferenceSchema = { | |||
'type': 'object', | |||
properties: { | |||
'navigator.autoReveal': { | |||
'explorer.autoReveal': { |
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.
Should we add a breaking change note in the changelog for the rename?
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 works nicely now. Mentioning in CHANGELOG that a preference was renamed would be good.
I'd like to rebase this on top of #5953 and add the toggle to the menu. In addition, if the user has disabled the auto-sync, I'd like to add an icon to the toolbar that would just reveal the current active editor's file in the navigator, once. Anton pointed out that is how it's done in IntelliJ and sounds better. @vince-fugnitto any estimates on when you are finishing #5953? |
There are some parts that I am unsure about (blocking issues). Some of the commands currently do not show up (in comparison to 0.8.0) because they expect |
@vince-fugnitto Let's split it then? first low hanging fruits, then the rest with another PR? |
I was just about to prepare the PR just for that :) |
9674a64
to
2fc0dfc
Compare
I've mode the icon into the menu now. Please review |
@svenefftinge it does not compile |
2fc0dfc
to
a619fe8
Compare
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.
@svenefftinge it does not work for me, I never see this action in the context menu:
a619fe8
to
41ef406
Compare
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 does work now and code looks good.
But I wonder how can one quickly reveal a file without enabling the preference? Only using the quick palette? Maybe we could have at least a keybinding for Reveal In Files
command?
41ef406
to
b7336fd
Compare
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
b7336fd
to
deacd0b
Compare
What it does
This adds a toolbar command to the navigator, that allows to easily disable the auto-sync between editor and navigator.
How to test
Open some editors and switch between them.
See how the navigator reveals the corresponding items all the time.
Disable the new toolbar item in the navigator to disable the sync.
Switch between editors and see how the navigator stays as is.
Enable the new toolbar item and see how the navigator syncs again with the current editor.
Review checklist
Reminder for reviewers