提交 0ad3753d 编写于 作者: B Benjamin Pasero

macOS: try to flush localStorage earlier before quitting (for #39125)

上级 4f424428
......@@ -268,18 +268,18 @@ export class UpdateService implements IUpdateService {
return TPromise.as(null);
}
// 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 (process.platform === 'darwin') {
electron.session.defaultSession.flushStorageData();
}
this.lifecycleService.quit(true /* from update */).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 (process.platform === 'darwin') {
electron.session.defaultSession.flushStorageData();
}
this.raw.quitAndInstall();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册