@@ -201,7 +201,7 @@ class AttachContextAction extends Action2 {
201
201
value : pick . value ,
202
202
name : `${ typeof pick . value === 'string' && pick . value . startsWith ( '#' ) ? pick . value . slice ( 1 ) : '' } ${ selection } ` ,
203
203
// Apply the original icon with the new name
204
- fullName : ` ${ pick . icon ? `$( ${ pick . icon . id } ) ` : '' } ${ selection } `
204
+ fullName : selection
205
205
} ) ;
206
206
} else if ( 'symbol' in pick && pick . symbol ) {
207
207
// Symbol
@@ -278,9 +278,10 @@ class AttachContextAction extends Action2 {
278
278
for ( const variable of chatVariablesService . getVariables ( widget . location ) ) {
279
279
if ( variable . fullName && ( ! variable . isSlow || slowSupported ) ) {
280
280
quickPickItems . push ( {
281
- label : ` ${ variable . icon ? `$( ${ variable . icon . id } ) ` : '' } ${ variable . fullName } ` ,
281
+ label : variable . fullName ,
282
282
name : variable . name ,
283
283
id : variable . id ,
284
+ iconClass : variable . icon ? ThemeIcon . asClassName ( variable . icon ) : undefined ,
284
285
icon : variable . icon
285
286
} ) ;
286
287
}
@@ -293,10 +294,11 @@ class AttachContextAction extends Action2 {
293
294
for ( const variable of completions ) {
294
295
if ( variable . fullName ) {
295
296
quickPickItems . push ( {
296
- label : ` ${ variable . icon ? `$( ${ variable . icon . id } ) ` : '' } ${ variable . fullName } ` ,
297
+ label : variable . fullName ,
297
298
id : variable . id ,
298
299
command : variable . command ,
299
300
icon : variable . icon ,
301
+ iconClass : variable . icon ? ThemeIcon . asClassName ( variable . icon ) : undefined ,
300
302
value : variable . value ,
301
303
isDynamic : true ,
302
304
name : variable . name
@@ -324,8 +326,9 @@ class AttachContextAction extends Action2 {
324
326
}
325
327
326
328
quickPickItems . push ( {
327
- label : localize ( 'chatContext.symbol' , '{0} Symbol...' , `$( ${ Codicon . symbolField . id } )` ) ,
329
+ label : localize ( 'chatContext.symbol' , 'Symbol...' ) ,
328
330
icon : ThemeIcon . fromId ( Codicon . symbolField . id ) ,
331
+ iconClass : ThemeIcon . asClassName ( Codicon . symbolField ) ,
329
332
prefix : SymbolsQuickAccessProvider . PREFIX
330
333
} ) ;
331
334
@@ -347,6 +350,7 @@ class AttachContextAction extends Action2 {
347
350
}
348
351
349
352
private _show ( quickInputService : IQuickInputService , commandService : ICommandService , widget : IChatWidget , quickPickItems : ( IChatContextQuickPickItem | QuickPickItem ) [ ] , query : string = '' ) {
353
+
350
354
quickInputService . quickAccess . show ( query , {
351
355
enabledProviderPrefixes : [
352
356
AnythingQuickAccessProvider . PREFIX ,
0 commit comments