Skip to content

Commit 4bb6ed5

Browse files
committed
Fixes deleting storage keys by prefix
1 parent 6640ca2 commit 4bb6ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/system/vscode/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class Storage implements Disposable {
8282
if (prefix == null || key === prefix || key.startsWith(`${prefix}:`)) {
8383
if (exclude?.includes(key)) continue;
8484

85-
await this.context.globalState.update(key, undefined);
85+
await this.context.globalState.update(qualifiedKey, undefined);
8686
this._onDidChange.fire({ key: key, workspace: false });
8787
}
8888
}
@@ -147,7 +147,7 @@ export class Storage implements Disposable {
147147
if (prefix == null || key === prefix || key.startsWith(`${prefix}:`)) {
148148
if (exclude?.includes(key)) continue;
149149

150-
await this.context.workspaceState.update(key, undefined);
150+
await this.context.workspaceState.update(qualifiedKey, undefined);
151151
this._onDidChange.fire({ key: key, workspace: true });
152152
}
153153
}

0 commit comments

Comments
 (0)