Skip to content

Commit eba77da

Browse files
committed
fix /explain shortcut logic
1 parent eca71e1 commit eba77da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ export class InlineChatController implements IEditorContribution {
519519
if (agent.locations.includes(ChatAgentLocation.Panel)) {
520520
const commands = agent.slashCommands;
521521
if (commands.find((command) => withoutSubCommandLeader.startsWith(command.name))) {
522-
massagedInput = `${chatAgentLeader}${agent.id} ${slashCommandLike.text}`;
522+
massagedInput = `${chatAgentLeader}${agent.name} ${slashCommandLike.text}`;
523523
break;
524524
}
525525
}
@@ -1120,7 +1120,7 @@ async function showMessageResponse(accessor: ServicesAccessor, query: string, re
11201120
}
11211121

11221122
const chatWidgetService = accessor.get(IChatWidgetService);
1123-
const widget = await chatWidgetService.revealViewForProvider(agent.id);
1123+
const widget = await chatWidgetService.revealViewForProvider(agent.name);
11241124
if (widget && widget.viewModel) {
11251125
chatService.addCompleteRequest(widget.viewModel.sessionId, query, undefined, { message: response });
11261126
widget.focusLastMessage();
@@ -1134,7 +1134,7 @@ async function sendRequest(accessor: ServicesAccessor, query: string) {
11341134
if (!agent) {
11351135
return;
11361136
}
1137-
const widget = await widgetService.revealViewForProvider(agent.id);
1137+
const widget = await widgetService.revealViewForProvider(agent.name);
11381138
if (!widget) {
11391139
return;
11401140
}

0 commit comments

Comments
 (0)