private quitAndUpdate(rawQuitAndUpdate: () => void): void { Lifecycle.quit().done(vetod => { if (vetod) { return; } rawQuitAndUpdate(); }); }
private quitAndUpdate(updatePackagePath: string): void { Lifecycle.quit().done(vetod => { if (vetod) { return; } cp.spawn(updatePackagePath, ['/silent', '/mergetasks=runcode,!desktopicon,!quicklaunchicon'], { detached: true, stdio: ['ignore', 'ignore', 'ignore'] }); }); }
private quitAndUpdate(rawQuitAndUpdate: () => void): void { Lifecycle.quit().done(vetod => { if (vetod) { return; } // for some reason updating on Mac causes the local storage not to be flushed. // we workaround this issue by forcing an explicit flush of the storage data. // see also https://github.com/Microsoft/vscode/issues/172 if (platform.isMacintosh) { electron.session.defaultSession.flushStorageData(); } rawQuitAndUpdate(); }); }