mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
🐛 catch windows going down
This commit is contained in:
@@ -42,7 +42,12 @@ export class SharedProcess {
|
||||
this.disposables.push(toDisposable(() => {
|
||||
// Electron seems to crash on Windows without this setTimeout :|
|
||||
setTimeout(() => {
|
||||
this.window.close();
|
||||
try {
|
||||
this.window.close();
|
||||
} catch (err) {
|
||||
// ignore, as electron is already shutting down
|
||||
}
|
||||
|
||||
this.window = null;
|
||||
}, 0);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user