mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
parent
3c1caff66c
commit
ab206379cc
|
@ -52,11 +52,11 @@ export abstract class AbstractLifecycleService extends Disposable implements ILi
|
|||
this._startupKind = this.resolveStartupKind();
|
||||
|
||||
// Save shutdown reason to retrieve on next startup
|
||||
this.storageService.onWillSaveState(e => {
|
||||
this._register(this.storageService.onWillSaveState(e => {
|
||||
if (e.reason === WillSaveStateReason.SHUTDOWN) {
|
||||
this.storageService.store(AbstractLifecycleService.LAST_SHUTDOWN_REASON_KEY, this.shutdownReason, StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
||||
}
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
private resolveStartupKind(): StartupKind {
|
||||
|
|
Loading…
Reference in a new issue