Closed TheIndifferent closed 8 years ago
Yeah I hate this.
If you hide the sidebar the next time you open vscode it would have the sidebar hidden. Though adding an explicit option is a feature request thus assigning to @bpasero
@isidorn
Doesn't work. Unless Ctrl+B doesn't count as hiding the sidebar.
Also, every git command that opens a vscode editor has the sidebar. I press Ctrl+B every time and it just keeps coming back. This can be extra annoying sometimes if I've just used the find all and had the sidebar in a huge state.
@garfieldbanks @TheIndifferent are you opening a folder with VS Code or opening empty/single file? Do you see the sidebar when opening a folder or with VSCode opening empty/single file?
I suspect this could be the experiments for these people to cause the sidebar to always show when opening single file / empty workspace.
@bpasero
OK I just tested opening code from the terminal like this:
code .
And this DOES preserve the sidebar being hidden (like @isidorn said) after I close the window and reopen it with:
code .
However I don't usually actually open vscode like this. I have it set to never reopen any folders. Maybe that will help isolate the problem.
I usually open vscode with a shortcut bound to a hotkey. The shortcut uses:
code -n
I then press Ctrl+R to open the recently open folders and press enter on the one I want to open.
Every time, after hiding the sidebar, closing the editor window, and opening a new editor window, the sidebar has been reset to visible.
My usecase is much simpler:
I can verify this in Windows 10 as well.
Place a simple shortcut to vscode on the desktop (without any command line parameters).
Open vscode using desktop shortcut.
Press Ctrl+B to close the sidebar.
Press Ctrl+Shift+W to close vscode.
Reopen vscode using desktop shortcut.
Verify that sidebar has been reset to visible.
@garfieldbanks @TheIndifferent can you please upload a screenshot for when VS Code shows the sidebar when you do NOT expect it.
It just keeps coming back to say hello.
@garfieldbanks @TheIndifferent can you try setting this in settings:
"telemetry.experiments.showDefaultViewlet": false
Yup. That fixes it.
We need to disable these experiments as they cause unexpected and indeterministic behaviour.
Unless objections, I will revert them ( @egamma @seanmcbreen @chrmarti fyi).
I deleted all experiments besides the watermark experiment. Though I argue it should just be enabled by default.
CC @kieferrm
@bpasero disabling the experiments is not quite the right solution to the issue @TheIndifferent and @garfieldbanks are seeing. It would make it impossible for us to improve our understanding how to better help first time users.
The issue comes to light because we don't remember the state for the sidebar if the user does not have an open workspace. I.e. when in an older version you make the sidebar visible without opening a folder and restart code you will not get your sidebar back.
Since we are not interested in changing the behavior for returning users, I'll attach a PR that filters based on first time usage.
@kieferrm sounds good, I have opened https://github.com/Microsoft/vscode/issues/14009
As far as this issue goes, it is resolved by setting "telemetry.experiments.showDefaultViewlet": false
for now.
Often using VSC to do something real quick, like change arguments in URL or catch the terminal output, would be helpful to start with hidden side bar.