Skip to content

Commit 9f41592

Browse files
authored
Merge pull request microsoft#242141 from microsoft/osortega/fix-deleting-ai-folder
Fix for deleting a whole AI search folder
2 parents cfe8020 + 737dc61 commit 9f41592

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/search/browser/AISearch/aiSearchModel.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ export class AIFolderMatchWorkspaceRootImpl extends Disposable implements ISearc
295295
private disposeMatches(): void {
296296
[...this._fileMatches.values()].forEach((fileMatch: ISearchTreeFileMatch) => fileMatch.dispose());
297297
[...this._unDisposedFileMatches.values()].forEach((fileMatch: ISearchTreeFileMatch) => fileMatch.dispose());
298+
this._fileMatches.clear();
298299
}
299300

300301
override dispose(): void {

0 commit comments

Comments
 (0)