mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 10:27:46 +00:00
parent
8feb40b928
commit
73c0889cb7
|
@ -245,10 +245,10 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
|
||||||
// Restore editor part on any editor change
|
// Restore editor part on any editor change
|
||||||
this._register(this.editorService.onDidVisibleEditorsChange(showEditorIfHidden));
|
this._register(this.editorService.onDidVisibleEditorsChange(showEditorIfHidden));
|
||||||
this._register(this.editorGroupService.onDidActivateGroup(showEditorIfHidden));
|
this._register(this.editorGroupService.onDidActivateGroup(showEditorIfHidden));
|
||||||
});
|
|
||||||
|
|
||||||
// Revalidate center layout when active editor changes: diff editor quits centered mode.
|
// Revalidate center layout when active editor changes: diff editor quits centered mode.
|
||||||
this._register(this.editorService.onDidActiveEditorChange(() => this.centerEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_CENTERED))));
|
this._register(this.editorService.onDidActiveEditorChange(() => this.centerEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_CENTERED))));
|
||||||
|
});
|
||||||
|
|
||||||
// Configuration changes
|
// Configuration changes
|
||||||
this._register(this.configurationService.onDidChangeConfiguration(() => this.doUpdateLayoutConfiguration()));
|
this._register(this.configurationService.onDidChangeConfiguration(() => this.doUpdateLayoutConfiguration()));
|
||||||
|
@ -347,7 +347,9 @@ export abstract class Layout extends Disposable implements IWorkbenchLayoutServi
|
||||||
this.updateMenubarVisibility(!!skipLayout);
|
this.updateMenubarVisibility(!!skipLayout);
|
||||||
|
|
||||||
// Centered Layout
|
// Centered Layout
|
||||||
this.centerEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_CENTERED), skipLayout);
|
this.editorGroupService.whenRestored.then(() => {
|
||||||
|
this.centerEditorLayout(this.stateModel.getRuntimeValue(LayoutStateKeys.EDITOR_CENTERED), skipLayout);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private setSideBarPosition(position: Position): void {
|
private setSideBarPosition(position: Position): void {
|
||||||
|
|
Loading…
Reference in a new issue