File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ export function registerChatActions() {
501
501
}
502
502
503
503
interface ICodingAgentPickerItem extends IChatPickerItem {
504
- handle : number ;
504
+ uri ?: URI ;
505
505
}
506
506
507
507
const getPicks = async ( showAllChats : boolean = false , showAllAgents : boolean = false ) => {
@@ -574,11 +574,11 @@ export function registerChatActions() {
574
574
lastMessageDate : 0 ,
575
575
} ,
576
576
buttons : [ ] ,
577
- handle : 0 // Default handle
577
+ uri : sessionContent . uri
578
578
} ;
579
579
580
580
// Check if this agent already exists (update existing or add new)
581
- const existingIndex = agentPicks . findIndex ( pick => pick . chat . sessionId === sessionContent . uri . toString ( ) ) ;
581
+ const existingIndex = agentPicks . findIndex ( pick => pick . chat . sessionId === sessionContent . uri . path ) ;
582
582
if ( existingIndex >= 0 ) {
583
583
agentPicks [ existingIndex ] = agentPick ;
584
584
} else {
@@ -613,7 +613,7 @@ export function registerChatActions() {
613
613
lastMessageDate : 0 ,
614
614
} ,
615
615
buttons : [ ] ,
616
- handle : - 1 // Special handle for "show more" option
616
+ uri : undefined ,
617
617
} ) ;
618
618
}
619
619
}
@@ -755,7 +755,7 @@ export function registerChatActions() {
755
755
true
756
756
) ;
757
757
return ;
758
- } else if ( ( item as ICodingAgentPickerItem ) . handle !== undefined ) {
758
+ } else if ( ( item as ICodingAgentPickerItem ) . uri !== undefined ) {
759
759
// TODO: handle click
760
760
return ;
761
761
}
You can’t perform that action at this time.
0 commit comments