@@ -52,7 +52,7 @@ export class LifecycleService extends Disposable implements ILifecycleService {
5252
5353 private resolveStartupKind ( ) : StartupKind {
5454 const lastShutdownReason = this . storageService . getInteger ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , StorageScope . WORKSPACE ) ;
55- this . storageService . delete ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , StorageScope . WORKSPACE ) ;
55+ this . storageService . remove ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , StorageScope . WORKSPACE ) ;
5656
5757 let startupKind : StartupKind ;
5858 if ( lastShutdownReason === ShutdownReason . RELOAD ) {
@@ -76,13 +76,13 @@ export class LifecycleService extends Disposable implements ILifecycleService {
7676 this . logService . trace ( `lifecycle: onBeforeUnload (reason: ${ reply . reason } )` ) ;
7777
7878 // store shutdown reason to retrieve next startup
79- this . storageService . set ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , JSON . stringify ( reply . reason ) , StorageScope . WORKSPACE ) ;
79+ this . storageService . store ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , JSON . stringify ( reply . reason ) , StorageScope . WORKSPACE ) ;
8080
8181 // trigger onWillShutdown events and veto collecting
8282 this . handleWillShutdown ( reply . reason ) . then ( veto => {
8383 if ( veto ) {
8484 this . logService . trace ( 'lifecycle: onBeforeUnload prevented via veto' ) ;
85- this . storageService . delete ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , StorageScope . WORKSPACE ) ;
85+ this . storageService . remove ( LifecycleService . LAST_SHUTDOWN_REASON_KEY , StorageScope . WORKSPACE ) ;
8686 ipc . send ( reply . cancelChannel , windowId ) ;
8787 } else {
8888 this . logService . trace ( 'lifecycle: onBeforeUnload continues without veto' ) ;
0 commit comments