From 0e542f326f2985e1ae4dfaeab6be9bd267fb861f Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Wed, 28 Aug 2024 13:42:40 -0700 Subject: [PATCH] fix: populate chat command disambiguation (#227008) --- src/vs/workbench/contrib/chat/common/chatAgents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/chat/common/chatAgents.ts b/src/vs/workbench/contrib/chat/common/chatAgents.ts index 5cc12623309..3ff7e3311bb 100644 --- a/src/vs/workbench/contrib/chat/common/chatAgents.ts +++ b/src/vs/workbench/contrib/chat/common/chatAgents.ts @@ -445,7 +445,7 @@ export class ChatAgentService implements IChatAgentService { const participants = this.getAgents().reduce((acc, a) => { acc.push({ participant: a.id, disambiguation: a.disambiguation ?? [] }); for (const command of a.slashCommands) { - acc.push({ participant: a.id, command: command.name, disambiguation: [] }); + acc.push({ participant: a.id, command: command.name, disambiguation: command.disambiguation ?? [] }); } return acc; }, []);