You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ability to switch to previous behavior on 1.52.0 'Preview editor improvements' #112348
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesuxUser experience issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window
With the November 2020 update, code navigation options do not open the navigated file in the same editor even when the current editor is in the preview mode. This quickly litters the workbench with a ton of editors when I want to drill down inheritance trees for example. If I want the navigation target to open in a new editor I can quickly get out of the preview mode with a command like save and then navigate so I don't understand the need for this change. I was able to use the Go->Back command to go to the previous editor in the preview mode already so I never lost track of where I have navigated from and this way the workbench is not littered with a ton of editors I'm not interested in. It really goes against the nature of "preview mode" in my opinion.
So my request it, please make it toggleable, I want the old behavior back. By old behavior I mean if the current editor is in preview mode and I navigate from it with commands like go to definition, open the definition file in the same editor in preview mode.
Reacted by cateyes99, Sarper Soher, Erdem Serhat ERGEN, Oskari Groenroos, emptyVoid, Zach Mitchell and 渔人
This seems like a fair request to me with a new option such as workbench.editor.enablePreviewFromCodeNavigation. Open for grab if someone wants to contribute a PR, the change needs to go somewhere here:
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
To be honest, this change is silly it causes so much inconvenience. If it's in preview editor mode, it isn't hard for someone to make it in normal editor mode first and then navigate to another one, if they really want. Now as this issue mentioned: This quickly litters the workbench with a ton of editors when I want to drill down inheritance trees for example. IMHO, it's should be roll back, or if add a new option to control this behaviour then the old behaviour should be the default one.
cateyes99 agreed. why is there a preview mode in the first place if it's going to behave the same with non-preview editors. with this change the preview mode became inconsistent with no added benefit that I can think of.
At least we in the team believe this to be a good change, and it was discussed in our UX meetings. We argue that it is equally confusing that an editor is replaced by the editor you are navigating to and as such you are not building up a history of navigation because all the editors open in the same location. Now, you have a trace of editors you navigated to. And the one you navigate to is opening in preview mode, so you only end up with more editors if you continue navigation.
Benjamin Pasero (@bpasero) I understand the reasoning but fail to see how turning my preview editor into a normal editor when I use go-to (which is a strange side effect) and make the preview editor behave exactly the same with a normal editor in this aspect is a better way to handle it. In the previous versions users could disable the preview editors all together or simply convert them to normal editors with a simple keyboard shortcut to achieve what is the only default now.
Yup I understand and I am happy to hear from users so that we can tweak this experience. As I said before, I am all up for a new setting to control this.
This bug has been fixed in to the latest release of VS Code Insiders!
Sarper Soher (@ssoher), you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 2f8dee4 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insiderson-release-notesIssue/pull request mentioned in release notesuxUser experience issuesverification-neededVerification of issue is requestedverifiedVerification succeededworkbench-editorsManaging of editor widgets in workbench window
Activity
gjsjohnmurray commentedon Dec 12, 2020
/assign Benjamin Pasero (@bpasero)
bpasero commentedon Dec 12, 2020
This seems like a fair request to me with a new option such as
workbench.editor.enablePreviewFromCodeNavigation. Open for grab if someone wants to contribute a PR, the change needs to go somewhere here:vscode/src/vs/workbench/services/editor/browser/codeEditorService.ts
Lines 73 to 90 in 36e2868
vscode-triage-bot commentedon Dec 12, 2020
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
cateyes99 commentedon Dec 12, 2020
To be honest, this change is silly it causes so much inconvenience. If it's in preview editor mode, it isn't hard for someone to make it in normal editor mode first and then navigate to another one, if they really want. Now as this issue mentioned:
This quickly litters the workbench with a ton of editors when I want to drill down inheritance trees for example.IMHO, it's should be roll back, or if add a new option to control this behaviour then the old behaviour should be the default one.ssoher commentedon Dec 12, 2020
cateyes99 agreed. why is there a preview mode in the first place if it's going to behave the same with non-preview editors. with this change the preview mode became inconsistent with no added benefit that I can think of.
bpasero commentedon Dec 12, 2020
At least we in the team believe this to be a good change, and it was discussed in our UX meetings. We argue that it is equally confusing that an editor is replaced by the editor you are navigating to and as such you are not building up a history of navigation because all the editors open in the same location. Now, you have a trace of editors you navigated to. And the one you navigate to is opening in preview mode, so you only end up with more editors if you continue navigation.
ssoher commentedon Dec 12, 2020
Benjamin Pasero (@bpasero) I understand the reasoning but fail to see how turning my preview editor into a normal editor when I use go-to (which is a strange side effect) and make the preview editor behave exactly the same with a normal editor in this aspect is a better way to handle it. In the previous versions users could disable the preview editors all together or simply convert them to normal editors with a simple keyboard shortcut to achieve what is the only default now.
bpasero commentedon Dec 12, 2020
Yup I understand and I am happy to hear from users so that we can tweak this experience. As I said before, I am all up for a new setting to control this.
17 remaining items
bpasero commentedon Dec 15, 2020
A new setting
enablePreviewFromCodeNavigationallows to configure this.vscode-triage-bot commentedon Dec 16, 2020
This bug has been fixed in to the latest release of VS Code Insiders!
Sarper Soher (@ssoher), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 2f8dee4 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
ssoher commentedon Dec 19, 2020
/verified