Skip to content
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

Grid state not correctly restored on restart #78173

Closed
alexr00 opened this issue Jul 30, 2019 · 8 comments
Closed

Grid state not correctly restored on restart #78173

alexr00 opened this issue Jul 30, 2019 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug layout General VS Code workbench layout issues verified Verification succeeded workbench-editor-grid Grid layout issues in the editor area
Milestone

Comments

@alexr00
Copy link
Member

alexr00 commented Jul 30, 2019

Testing #78137

Starting state that I made:
one
Then I moved one of the sashes:
two
Then I restarted:
three

You can see that the sash position didn't save.

@alexr00 alexr00 added the layout General VS Code workbench layout issues label Jul 30, 2019
@sbatten sbatten added bug Issue identified by VS Code Team member as probable bug workbench-editor-grid Grid layout issues in the editor area labels Jul 30, 2019
@sbatten sbatten added this to the August 2019 milestone Jul 30, 2019
@sbatten
Copy link
Member

sbatten commented Aug 9, 2019

@bpasero where does the editor grid stuff get saved, not sure why it wouldn't be properly saved in grid layout

@bpasero
Copy link
Member

bpasero commented Aug 9, 2019

@sbatten it gets stored into the memento of the editor part (editorpart.state):

protected saveState(): void {

@chpxu
Copy link

chpxu commented Aug 9, 2019

I have been seeing this issue from time to time especially in the exploration electron 6 builds: my sidebar width still resets on starting up vscode

@bpasero
Copy link
Member

bpasero commented Aug 9, 2019

@beastdestroyer and what is your setting for workbench.useExperimentalGridLayout?

@chpxu
Copy link

chpxu commented Aug 9, 2019

@bpasero It has always been on since introduced as a setting
image

Also for me it seems the sidebar occassionally resets itself too but it isn't consistent

@bpasero
Copy link
Member

bpasero commented Aug 9, 2019

I would wait for a more recent exploration build where a couple of changes went in specifically around serialization.

@sbatten
Copy link
Member

sbatten commented Aug 13, 2019

@joaomoreno we can discuss this in our deep dive tomorrow as this results from the many layout calls happening during initial layout propagating down to the nested grid which gets a lot of different sizes ruining its serialized layout.

@joaomoreno
Copy link
Member

Only happens for vertical sashes of the editor grid.

@RMacfarlane RMacfarlane added the verified Verification succeeded label Aug 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug layout General VS Code workbench layout issues verified Verification succeeded workbench-editor-grid Grid layout issues in the editor area
Projects
None yet
Development

No branches or pull requests

6 participants