sandbox - further reduce electron dependencies

This commit is contained in:
Benjamin Pasero
2020-05-25 09:38:05 +02:00
parent 246d25965c
commit 9eb99077f9
30 changed files with 335 additions and 36 deletions

View File

@@ -42,7 +42,7 @@ export class SharedProcess implements ISharedProcess {
show: false,
backgroundColor: this.themeMainService.getBackgroundColor(),
webPreferences: {
preload: URI.parse(require.toUrl('vs/code/electron-browser/preload.js')).fsPath,
preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath,
images: false,
nodeIntegration: true,
webgl: false,

View File

@@ -779,7 +779,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
}
private doGetPreloadUrl(): string {
return require.toUrl('vs/code/electron-browser/preload.js');
return require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js');
}
serializeWindowState(): IWindowState {