We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ccd5313 + e939750 commit 5d45a11Copy full SHA for 5d45a11
extensions/ql-vscode/src/common/vscode/archive-filesystem-provider.ts
@@ -242,6 +242,17 @@ export class ArchiveFileSystemProvider implements FileSystemProvider {
242
243
root = new Directory("");
244
245
+ constructor() {
246
+ // When a file system archive is removed from the workspace, we should
247
+ // also remove it from our cache.
248
+ workspace.onDidChangeWorkspaceFolders((event) => {
249
+ for (const removed of event.removed) {
250
+ const zipPath = removed.uri.fsPath;
251
+ this.archives.delete(zipPath);
252
+ }
253
+ });
254
255
+
256
// metadata
257
258
async stat(uri: Uri): Promise<FileStat> {
0 commit comments