From ded1ac53799e89796a09b7a2e9cc78bad5fea2ad Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Fri, 9 Aug 2019 18:34:17 +0200 Subject: [PATCH] window - remove obsolete code for showing window in did-finish-load We since have changed the code so much that we always show the window after it is being created. --- src/vs/code/electron-main/window.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/vs/code/electron-main/window.ts b/src/vs/code/electron-main/window.ts index 517417b9867..c6d2f29b1ba 100644 --- a/src/vs/code/electron-main/window.ts +++ b/src/vs/code/electron-main/window.ts @@ -360,17 +360,6 @@ export class CodeWindow extends Disposable implements ICodeWindow { this.pendingLoadConfig = undefined; } - - // To prevent flashing, we set the window visible after the page has finished to load but before Code is loaded - if (this._win && !this._win.isVisible()) { - if (this.windowState.mode === WindowMode.Maximized) { - this._win.maximize(); - } - - if (!this._win.isVisible()) { // maximize also makes visible - this._win.show(); - } - } }); // Window Focus