File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import { ConfigureToolSets } from '../tools/toolSetsContribution.js';
25
25
26
26
27
27
const enum BucketOrdinal { User , BuiltIn , Mcp , Extension }
28
- type BucketPick = IQuickPickItem & { picked : boolean ; ordinal : BucketOrdinal ; status ?: string ; children : ( ToolPick | ToolSetPick ) [ ] } ;
28
+ type BucketPick = IQuickPickItem & { picked : boolean ; ordinal : BucketOrdinal ; status ?: string ; toolset ?: ToolSet ; children : ( ToolPick | ToolSetPick ) [ ] } ;
29
29
type ToolSetPick = IQuickPickItem & { picked : boolean ; toolset : ToolSet ; parent : BucketPick } ;
30
30
type ToolPick = IQuickPickItem & { picked : boolean ; tool : IToolData ; parent : BucketPick } ;
31
31
type CallbackPick = IQuickPickItem & { pickable : false ; run : ( ) => void } ;
@@ -199,6 +199,9 @@ export async function showToolsPicker(
199
199
indented : true ,
200
200
buttons
201
201
} ) ;
202
+ } else {
203
+ // stash the MCP toolset into the bucket item
204
+ bucket . toolset = toolSetOrTool ;
202
205
}
203
206
204
207
} else if ( toolSetOrTool . canBeReferencedInPrompt ) {
@@ -282,6 +285,9 @@ export async function showToolsPicker(
282
285
} else if ( isToolPick ( item ) ) {
283
286
result . set ( item . tool , item . picked ) ;
284
287
} else if ( isBucketPick ( item ) ) {
288
+ if ( item . toolset ) {
289
+ result . set ( item . toolset , item . picked ) ;
290
+ }
285
291
for ( const child of item . children ) {
286
292
if ( isToolSetPick ( child ) ) {
287
293
result . set ( child . toolset , item . picked ) ;
You can’t perform that action at this time.
0 commit comments