@@ -125,12 +125,10 @@ export class McpResourcePickHelper {
125
125
quickInput . totalSteps = todo . length ;
126
126
quickInput . ignoreFocusOut = true ;
127
127
128
- const initialCompletions = todo . map ( variable => rt . complete ( variable . name , '' , { } , cts . token ) ) ;
129
-
130
128
try {
131
129
for ( let i = 0 ; i < todo . length ; i ++ ) {
132
130
const variable = todo [ i ] ;
133
- const resolved = await this . _promptForTemplateValue ( quickInput , variable , initialCompletions [ i ] , vars , rt ) ;
131
+ const resolved = await this . _promptForTemplateValue ( quickInput , variable , vars , rt ) ;
134
132
if ( resolved === undefined ) {
135
133
return undefined ;
136
134
}
@@ -143,9 +141,9 @@ export class McpResourcePickHelper {
143
141
}
144
142
}
145
143
146
- private _promptForTemplateValue ( input : IQuickPick < IQuickPickItem > , variable : IUriTemplateVariable , initialCompletions : Promise < string [ ] > , variablesSoFar : Record < string , string | string [ ] > , rt : IMcpResourceTemplate ) : Promise < string | undefined > {
144
+ private _promptForTemplateValue ( input : IQuickPick < IQuickPickItem > , variable : IUriTemplateVariable , variablesSoFar : Record < string , string | string [ ] > , rt : IMcpResourceTemplate ) : Promise < string | undefined > {
147
145
const store = new DisposableStore ( ) ;
148
- const completions = new Map < string , Promise < string [ ] > > ( [ [ '' , initialCompletions ] ] ) ;
146
+ const completions = new Map < string , Promise < string [ ] > > ( [ ] ) ;
149
147
150
148
const variablesWithPlaceholders = { ...variablesSoFar } ;
151
149
for ( const variable of rt . template . components . flatMap ( c => typeof c === 'object' ? c . variables : [ ] ) ) {
0 commit comments