mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-07 17:23:56 -05:00
Update Electron to 19.1.3 (#21244)
* chore: bump electron@18.0.0-beta.4 * Merge commit * chore: update electron@19.0.17 (#161027) * chore: update electron@19.0.17 * chore: update API typings * fix: compilation errors * build: add libcups dependency * chore: update electron@19.1.3 (#164864) * Update yarn Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
22
src/bootstrap-fork.js
vendored
22
src/bootstrap-fork.js
vendored
@@ -37,6 +37,11 @@ if (process.env['VSCODE_PARENT_PID']) {
|
||||
terminateWhenParentTerminates();
|
||||
}
|
||||
|
||||
// Listen for message ports
|
||||
if (process.env['VSCODE_WILL_SEND_MESSAGE_PORT']) {
|
||||
listenForMessagePort();
|
||||
}
|
||||
|
||||
// Load AMD entry point
|
||||
require('./bootstrap-amd').load(process.env['VSCODE_AMD_ENTRYPOINT']);
|
||||
|
||||
@@ -264,4 +269,21 @@ function terminateWhenParentTerminates() {
|
||||
}
|
||||
}
|
||||
|
||||
function listenForMessagePort() {
|
||||
// We need to listen for the 'port' event as soon as possible,
|
||||
// otherwise we might miss the event. But we should also be
|
||||
// prepared in case the event arrives late.
|
||||
// @ts-ignore
|
||||
if (process.parentPort) {
|
||||
// @ts-ignore
|
||||
process.parentPort.on('message', (e) => {
|
||||
if (global.vscodePortsCallback) {
|
||||
global.vscodePortsCallback(e.ports);
|
||||
} else {
|
||||
global.vscodePorts = e.ports;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
@@ -335,7 +335,6 @@ export class IssueMainService implements ICommonIssueService {
|
||||
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',
|
||||
enableWebSQL: false,
|
||||
spellcheck: false,
|
||||
nativeWindowOpen: true,
|
||||
zoomFactor: zoomLevelToZoomFactor(options.zoomLevel),
|
||||
sandbox: true,
|
||||
contextIsolation: true
|
||||
|
||||
@@ -226,7 +226,6 @@ export class SharedProcess extends Disposable implements ISharedProcess {
|
||||
contextIsolation: false,
|
||||
enableWebSQL: false,
|
||||
spellcheck: false,
|
||||
nativeWindowOpen: true,
|
||||
images: false,
|
||||
webgl: false
|
||||
}
|
||||
|
||||
@@ -193,7 +193,6 @@ export class CodeWindow extends Disposable implements ICodeWindow {
|
||||
v8CacheOptions: this.environmentMainService.useCodeCache ? 'bypassHeatCheck' : 'none',
|
||||
enableWebSQL: false,
|
||||
spellcheck: false,
|
||||
nativeWindowOpen: true,
|
||||
zoomFactor: zoomLevelToZoomFactor(windowSettings?.zoomLevel),
|
||||
// Enable experimental css highlight api https://chromestatus.com/feature/5436441440026624
|
||||
// Refs https://github.com/microsoft/vscode/issues/140098
|
||||
|
||||
Reference in New Issue
Block a user