electron - explicitly disable spellchecker

It will be enabled by default starting with Electron 9
This commit is contained in:
Benjamin Pasero 2020-07-21 07:50:25 +02:00
parent dc333833e9
commit a006879172
5 changed files with 6 additions and 0 deletions

View file

@ -64,6 +64,7 @@ export class ProxyAuthHandler extends Disposable {
sandbox: true, sandbox: true,
devTools: false, devTools: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
v8CacheOptions: 'bypassHeatCheck' v8CacheOptions: 'bypassHeatCheck'
} }
}; };

View file

@ -46,6 +46,7 @@ export class SharedProcess implements ISharedProcess {
nodeIntegration: true, nodeIntegration: true,
enableWebSQL: false, enableWebSQL: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
nativeWindowOpen: true, nativeWindowOpen: true,
images: false, images: false,
webgl: false, webgl: false,

View file

@ -170,6 +170,7 @@ export class CodeWindow extends Disposable implements ICodeWindow {
nodeIntegration: true, nodeIntegration: true,
enableWebSQL: false, enableWebSQL: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
nativeWindowOpen: true, nativeWindowOpen: true,
webviewTag: true, webviewTag: true,
zoomFactor: zoomLevelToZoomFactor(windowConfig?.zoomLevel) zoomFactor: zoomLevelToZoomFactor(windowConfig?.zoomLevel)

View file

@ -199,6 +199,7 @@ export class IssueMainService implements ICommonIssueService {
nodeIntegration: true, nodeIntegration: true,
enableWebSQL: false, enableWebSQL: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
nativeWindowOpen: true, nativeWindowOpen: true,
zoomFactor: zoomLevelToZoomFactor(data.zoomLevel) zoomFactor: zoomLevelToZoomFactor(data.zoomLevel)
} }
@ -252,6 +253,7 @@ export class IssueMainService implements ICommonIssueService {
preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath, preload: URI.parse(require.toUrl('vs/base/parts/sandbox/electron-browser/preload.js')).fsPath,
enableWebSQL: false, enableWebSQL: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
nativeWindowOpen: true, nativeWindowOpen: true,
zoomFactor: zoomLevelToZoomFactor(data.zoomLevel), zoomFactor: zoomLevelToZoomFactor(data.zoomLevel),
...this.environmentService.sandbox ? ...this.environmentService.sandbox ?

View file

@ -116,6 +116,7 @@ app.on('ready', () => {
nodeIntegration: true, nodeIntegration: true,
enableWebSQL: false, enableWebSQL: false,
enableRemoteModule: false, enableRemoteModule: false,
spellcheck: false,
nativeWindowOpen: true, nativeWindowOpen: true,
webviewTag: true webviewTag: true
} }