storage - fallback to in-memory storage if workspace storage cannot be ceated
parent
a88caf8b0b
commit
522688ed10
|
@ -107,6 +107,11 @@ export class StorageService extends Disposable implements IStorageService {
|
|||
|
||||
return Promise.reject(error);
|
||||
});
|
||||
}).then(void 0, error => {
|
||||
onUnexpectedError(error);
|
||||
|
||||
// Upon error, fallback to in-memory storage
|
||||
return this.createWorkspaceStorage(SQLiteStorageDatabase.IN_MEMORY_PATH).init();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue