From e2dbfd4b974487474f65ab54189531f97d8281e2 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 17 Dec 2019 07:33:34 +0100 Subject: [PATCH] electron - remove backgroundThrottling to fix blank windows --- src/vs/code/electron-main/window.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/vs/code/electron-main/window.ts b/src/vs/code/electron-main/window.ts index b0a839d5b9d..b7e3cff475c 100644 --- a/src/vs/code/electron-main/window.ts +++ b/src/vs/code/electron-main/window.ts @@ -130,11 +130,6 @@ export class CodeWindow extends Disposable implements ICodeWindow { show: !isFullscreenOrMaximized, title: product.nameLong, webPreferences: { - // By default if Code is in the background, intervals and timeouts get throttled, so we - // want to enforce that Code stays in the foreground. This triggers a disable_hidden_ - // flag that Electron provides via patch: - // https://github.com/electron/libchromiumcontent/blob/master/patches/common/chromium/disable_hidden.patch - backgroundThrottling: false, nodeIntegration: true, nodeIntegrationInWorker: RUN_TEXTMATE_IN_WORKER, webviewTag: true