From 428729769b0b6ef95fe8801ffe5f744b770a88a0 Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 6 Feb 2019 13:04:54 -0600 Subject: [PATCH] Use nativeNodeRequire --- scripts/vscode.patch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/vscode.patch b/scripts/vscode.patch index 4067ed407..c93bdd3fb 100644 --- a/scripts/vscode.patch +++ b/scripts/vscode.patch @@ -69,6 +69,13 @@ index e3efb95b75..163bc4c994 100644 + // Cannot control GC in the browser. + return Promise.resolve(obj); + +diff --git a/src/vs/workbench/api/node/extHostExtensionService.ts b/src/vs/workbench/api/node/extHostExtensionService.ts +index 7841dcdaa2..f5665f0db3 100644 +--- a/src/vs/workbench/api/node/extHostExtensionService.ts ++++ b/src/vs/workbench/api/node/extHostExtensionService.ts +@@ -654 +654 @@ function loadCommonJSModule(logService: ILogService, modulePath: string, acti +- r = require.__$__nodeRequire(modulePath); ++ r = (global as any).nativeNodeRequire(modulePath); diff --git a/src/vs/workbench/browser/dnd.ts b/src/vs/workbench/browser/dnd.ts index 38bf337a61..a6ee664a20 100644 --- a/src/vs/workbench/browser/dnd.ts