From 9cacc3ef4685eee315cd147b1ab124469f3b6335 Mon Sep 17 00:00:00 2001 From: Deepak Mohan Date: Wed, 8 May 2019 14:37:04 -0700 Subject: [PATCH] Enable node integration for browser window The default values have been flipped for security in https://github.com/electron/electron/pull/16235 --- src/vs/code/electron-main/window.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/code/electron-main/window.ts b/src/vs/code/electron-main/window.ts index fdfb2dcbc043c..6955b6795a324 100644 --- a/src/vs/code/electron-main/window.ts +++ b/src/vs/code/electron-main/window.ts @@ -139,7 +139,8 @@ export class CodeWindow extends Disposable implements ICodeWindow { // 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 + backgroundThrottling: false, + nodeIntegration: true } };