Skip to content

Commit 3444f74

Browse files
authored
Fix loading user toolset files (microsoft#252058)
Fix microsoft#252057
1 parent 2d7e9cd commit 3444f74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ export class UserToolSetsContributions extends Disposable implements IWorkbenchC
237237
const entries = await getFilesInFolder(uri);
238238

239239
if (cts.token.isCancellationRequested) {
240-
store.clear();
241240
return;
242241
}
243242

@@ -263,8 +262,7 @@ export class UserToolSetsContributions extends Disposable implements IWorkbenchC
263262
}
264263

265264
if (cts.token.isCancellationRequested) {
266-
store.dispose();
267-
break;
265+
return;
268266
}
269267

270268
for (const [name, value] of data.entries) {

0 commit comments

Comments
 (0)