async restore() {
    log.info('Restoring workspace data from', this.settingsFile);
    try {
      const data = await this.load();
      log.info('Restored workspace data from', this.settingsFile);
      this.initialized = true;
      this._processRestoredPayload(data);
      return data;
    } catch (cause) {
      log.warn('Unable to restore workspace data');
      log.warn(cause);
      this.initialized = true;
      return {};
    }
  }
/**
   * Restores state file.
   *
   * @return {Promise} Promise resolved to content of the file.
   */
Restores state file.
@return {Promise} Promise resolved to content of the file.
Restores state file . @return { Promise } Promise resolved to content of the file .
async restore() {
    log.info('Restoring workspace data from', this.settingsFile);
    try {
      const data = await this.load();
      log.info('Restored workspace data from', this.settingsFile);
      this.initialized = true;
      this._processRestoredPayload(data);
      return data;
    } catch (cause) {
      log.warn('Unable to restore workspace data');
      log.warn(cause);
      this.initialized = true;
      return {};
    }
  }
async restore ( ) { log . info ( 'Restoring workspace data from' , this . settingsFile ) ; try { const data = await this . load ( ) ; log . info ( 'Restored workspace data from' , this . settingsFile ) ; this . initialized = true ; this . _processRestoredPayload ( data ) ; return data ; } catch ( cause ) { log . warn ( 'Unable to restore workspace data' ) ; log . warn ( cause ) ; this . initialized = true ; return { } ; } }
Restores state file.
Restores state file .