electron - set v8CacheOptions: none when code caching is disabled

This commit is contained in:
Benjamin Pasero 2021-08-16 13:36:04 +02:00
parent 7aa0f8e754
commit a0afddd876
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65
3 changed files with 3 additions and 3 deletions

View file

@ -317,7 +317,7 @@ export class IssueMainService implements ICommonIssueService {
webPreferences: {
preload: FileAccess.asFileUri('vs/base/parts/sandbox/electron-browser/preload.js', require).fsPath,
additionalArguments: [`--vscode-window-config=${ipcObjectUrl.resource.toString()}`],
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',
enableWebSQL: false,
spellcheck: false,
nativeWindowOpen: true,

View file

@ -166,7 +166,7 @@ export class SharedProcess extends Disposable implements ISharedProcess {
webPreferences: {
preload: FileAccess.asFileUri('vs/base/parts/sandbox/electron-browser/preload.js', require).fsPath,
additionalArguments: [`--vscode-window-config=${configObjectUrl.resource.toString()}`],
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',
nodeIntegration: true,
contextIsolation: false,
enableWebSQL: false,

View file

@ -187,7 +187,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
webPreferences: {
preload: FileAccess.asFileUri('vs/base/parts/sandbox/electron-browser/preload.js', require).fsPath,
additionalArguments: [`--vscode-window-config=${this.configObjectUrl.resource.toString()}`],
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : undefined,
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',
enableWebSQL: false,
spellcheck: false,
nativeWindowOpen: true,