Skip to content

Commit

Permalink
refactor: update TCE message (#12519)
Browse files Browse the repository at this point in the history
* refactor: update TCE message

* test: ut
  • Loading branch information
yuqizhou77 authored Oct 15, 2024
1 parent 37faeee commit e39d783
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-extension/src/handlers/copilotChatHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export async function invokeTeamsAgent(args?: any[]): Promise<Result<null, FxErr
const query =
triggerFromProperty["trigger-from"] === TelemetryTriggerFrom.TreeView ||
triggerFromProperty["trigger-from"] === TelemetryTriggerFrom.CommandPalette
? "@teams "
: "@teams /create ";
? "@teamsapp Use this GitHub Copilot extension to ask questions about Teams app development."
: "@teamsapp Find relevant templates or samples to build your Teams app as per your description. E.g. @teamsapp create an AI assistant bot that can complete common tasks.";
let res;

const isExtensionInstalled = githubCopilotInstalled();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ describe("invokeTeamsAgent", async () => {

chai.assert.isTrue(res.isOk());
chai.assert.equal(commandStub.callCount, 3);
chai.assert.equal(commandStub.getCall(2).args[1].query, "@teams ");
chai.assert.isTrue(
(commandStub.getCall(2).args[1].query as string).startsWith("@teamsapp Use ")
);
});

it("install Github Copilot, wait and invoke Teams Agent", async () => {
Expand Down

0 comments on commit e39d783

Please sign in to comment.