Skip to content

Commit f13b84c

Browse files
authored
agent sessions - use provider display name in dropdown (microsoft#272754)
1 parent 88c238e commit f13b84c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ export class AgentSessionsView extends FilterViewPane {
228228
actions: {
229229
getActions: () => {
230230
const actions: IAction[] = [];
231-
for (const provider of this.chatSessionsService.getAllChatSessionItemProviders()) {
232-
if (provider.chatSessionType === LOCAL_AGENT_SESSION_TYPE) {
231+
for (const provider of this.chatSessionsService.getAllChatSessionContributions()) {
232+
if (provider.type === LOCAL_AGENT_SESSION_TYPE) {
233233
continue; // local is the primary action
234234
}
235235

236236
actions.push(toAction({
237-
id: `newChatSessionFromProvider.${provider.chatSessionType}`,
238-
label: localize('newChatSessionFromProvider', "New Session ({0})", provider.chatSessionType),
239-
run: () => this.commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${provider.chatSessionType}`)
237+
id: `newChatSessionFromProvider.${provider.type}`,
238+
label: localize('newChatSessionFromProvider', "New Session ({0})", provider.displayName),
239+
run: () => this.commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${provider.type}`)
240240
}));
241241
}
242242
return actions;

0 commit comments

Comments
 (0)