mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 12:49:41 +01:00
sandbox - enable utility process in insiders by default (#175326)
This commit is contained in:
@@ -145,9 +145,14 @@ class SharedProcessMain extends Disposable {
|
||||
private registerListeners(): void {
|
||||
|
||||
// Shared process lifecycle
|
||||
const onExit = async () => {
|
||||
this.lifecycleService?.fireOnWillShutdown();
|
||||
this.dispose();
|
||||
let didExit = false;
|
||||
const onExit = () => {
|
||||
if (!didExit) {
|
||||
didExit = true;
|
||||
|
||||
this.lifecycleService?.fireOnWillShutdown();
|
||||
this.dispose();
|
||||
}
|
||||
};
|
||||
process.once('exit', onExit);
|
||||
if (isUtilityProcess(process)) {
|
||||
|
||||
Reference in New Issue
Block a user