mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-17 15:24:40 +01:00
last fix
This commit is contained in:
@@ -155,7 +155,7 @@ async function runMigrations(db: Database, migrations: readonly ISessionDatabase
|
||||
export class SessionDatabase implements ISessionDatabase {
|
||||
|
||||
private _dbPromise: Promise<Database> | undefined;
|
||||
private _closed: Promise<void> | undefined;
|
||||
private _closed: Promise<void> | true | undefined;
|
||||
private readonly _fileEditSequencer = new SequencerByKey<string>();
|
||||
|
||||
constructor(
|
||||
@@ -294,7 +294,7 @@ export class SessionDatabase implements ISessionDatabase {
|
||||
}
|
||||
|
||||
async close() {
|
||||
await (this._closed ??= this._dbPromise?.then(db => db.close()).catch(() => { }));
|
||||
await (this._closed ??= this._dbPromise?.then(db => db.close()).catch(() => { }) || true);
|
||||
}
|
||||
|
||||
dispose(): void {
|
||||
|
||||
Reference in New Issue
Block a user