mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 01:25:39 -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
|
||||
|
||||
Reference in New Issue
Block a user