mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
more editor events clean up
This commit is contained in:
@@ -121,7 +121,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
|
||||
this.panelHeight = this.storageService.getInteger(WorkbenchLayout.sashYHeightSettingsKey, StorageScope.GLOBAL, 0);
|
||||
|
||||
this.toUnbind.push(themeService.onDidThemeChange(_ => this.relayout()));
|
||||
this.toUnbind.push(eventService.addListener2(EventType.EDITOR_INPUT_CHANGING, (e: EditorEvent) => this.onEditorInputChanging(e)));
|
||||
this.toUnbind.push(eventService.addListener2(EventType.EDITOR_INPUT_CHANGING, (e: EditorEvent) => this.onEditorInputChanging()));
|
||||
|
||||
this.registerSashListeners();
|
||||
}
|
||||
@@ -243,7 +243,7 @@ export class WorkbenchLayout implements IVerticalSashLayoutProvider, IHorizontal
|
||||
});
|
||||
}
|
||||
|
||||
private onEditorInputChanging(e: EditorEvent): void {
|
||||
private onEditorInputChanging(): void {
|
||||
|
||||
// Make sure that we layout properly in case we detect that the sidebar is large enought to cause
|
||||
// multiple opened editors to go below minimal size. The fix is to trigger a layout for any editor
|
||||
|
||||
Reference in New Issue
Block a user