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

Editor layout is called on every config change #56185

Closed
roblourens opened this issue Aug 11, 2018 · 1 comment
Closed

Editor layout is called on every config change #56185

roblourens opened this issue Aug 11, 2018 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded

Comments

@roblourens
Copy link
Member

I noticed that 'layout' is called on every config change, not just ones that actually change the size of the editor. 'layout' triggers a refresh in the settings editor. I can work around it in the settings editor but avoiding this would be a nice optimization. Seems to be menu related

SettingsEditor2.layout (/Users/roblou/code/vscode/src/vs/workbench/parts/preferences/browser/settingsEditor2.ts:149)
EditorControl.layout (/Users/roblou/code/vscode/src/vs/workbench/browser/parts/editor/editorControl.ts:232)
EditorGroupView.layout (/Users/roblou/code/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.ts:1350)
LeafNode.orthogonalLayout (/Users/roblou/code/vscode/src/vs/base/browser/ui/grid/gridview.ts:444)
BranchNode.layout (/Users/roblou/code/vscode/src/vs/base/browser/ui/grid/gridview.ts:170)
GridView.layout (/Users/roblou/code/vscode/src/vs/base/browser/ui/grid/gridview.ts:547)
Grid.layout (/Users/roblou/code/vscode/src/vs/base/browser/ui/grid/grid.ts:218)
SerializableGrid.layout (/Users/roblou/code/vscode/src/vs/base/browser/ui/grid/grid.ts:495)
GridWidgetView.layout (/Users/roblou/code/vscode/src/vs/workbench/browser/parts/editor/editorPart.ts:76)
CenteredViewLayout.layout (/Users/roblou/code/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.ts:81)
EditorPart.doLayout (/Users/roblou/code/vscode/src/vs/workbench/browser/parts/editor/editorPart.ts:906)
EditorPart.layout (/Users/roblou/code/vscode/src/vs/workbench/browser/parts/editor/editorPart.ts:897)
WorkbenchLayout.layout (/Users/roblou/code/vscode/src/vs/workbench/browser/layout.ts:651)
Workbench.setMenubarVisibility (/Users/roblou/code/vscode/src/vs/workbench/electron-browser/workbench.ts:1441)
Workbench.onDidUpdateConfiguration (/Users/roblou/code/vscode/src/vs/workbench/electron-browser/workbench.ts:594)
(anonymous function) (/Users/roblou/code/vscode/src/vs/workbench/electron-browser/workbench.ts:504)
Emitter.fire (/Users/roblou/code/vscode/src/vs/base/common/event.ts:140)
WorkspaceService.triggerConfigurationChange (/Users/roblou/code/vscode/src/vs/workbench/services/configuration/node/configurationService.ts:679)
WorkspaceService.onUserConfigurationChanged (/Users/roblou/code/vscode/src/vs/workbench/services/configuration/node/configurationService.ts:548)
(anonymous function) (/Users/roblou/code/vscode/src/vs/workbench/services/configuration/node/configurationService.ts:82)
Emitter.fire (/Users/roblou/code/vscode/src/vs/base/common/event.ts:140)
(anonymous function) (/Users/roblou/code/vscode/src/vs/platform/configuration/node/configuration.ts:33)
Emitter.fire (/Users/roblou/code/vscode/src/vs/base/common/event.ts:140)
(anonymous function) (/Users/roblou/code/vscode/src/vs/base/node/config.ts:197)
(anonymous function) (/Users/roblou/code/vscode/src/vs/base/node/config.ts:109)
(anonymous function) (/Users/roblou/code/vscode/node_modules/graceful-fs/graceful-fs.js:78)
readFileAfterClose (original-fs.js:511)
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority candidate Issue identified as probable candidate for fixing in the next release labels Aug 11, 2018
@bpasero bpasero removed their assignment Aug 11, 2018
@bpasero
Copy link
Member

bpasero commented Aug 11, 2018

@sbatten looks like a simple check if something has changed is needed here:

https://github.com/Microsoft/vscode/blob/8e6c09cdaea91bc9a415c8eafa78f97c33d61c10/src/vs/workbench/electron-browser/workbench.ts#L1438

I would vote to add this to the recovery release.

@bpasero bpasero added workbench-menu and removed important Issue identified as high-priority labels Aug 11, 2018
@bpasero bpasero added this to the July Recovery 2018 milestone Aug 13, 2018
sbatten added a commit that referenced this issue Aug 16, 2018
@roblourens roblourens added the verified Verification succeeded label Aug 16, 2018
@egamma egamma removed the candidate Issue identified as probable candidate for fixing in the next release label Aug 17, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 27, 2018
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants