Skip to content

Commit

Permalink
fix: add telemetry for office agent for unit test - bug fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealHaojiangLiu committed Jun 20, 2024
1 parent b45eae3 commit 7e4566a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ import {
LanguageModelChatMessage,
LanguageModelChatMessageRole,
} from "vscode";
import { IChatTelemetryData } from "../../../chat/types";
import { ProjectMetadata } from "../../../chat/commands/create/types";
import { getCopilotResponseAsString } from "../../../chat/utils";
import { getOfficeProjectMatchSystemPrompt } from "../../officePrompts";
import { officeSampleProvider } from "./officeSamples";
import { CommandKey } from "../../../constants";
import { TelemetryProperty, TelemetryTriggerFrom } from "../../../telemetry/extTelemetryEvents";
import { TelemetryTriggerFrom } from "../../../telemetry/extTelemetryEvents";
import { CHAT_EXECUTE_COMMAND_ID } from "../../../chat/consts";
import { fileTreeAdd, buildFileTree } from "../../../chat/commands/create/helper";
import { getOfficeSampleDownloadUrlInfo } from "../../utils";
Expand Down
2 changes: 2 additions & 0 deletions packages/vscode-extension/test/officeChat/handlers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ Usage: @office Ask questions about Office Add-ins development.`);
[TelemetryProperty.CopilotChatCommand]: "",
[TelemetryProperty.CorrelationId]: "testCorrelationId",
[TelemetryProperty.HostType]: "",
[TelemetryProperty.CopilotChatRelatedSampleName]: "",
},
{
[TelemetryProperty.CopilotChatFeedbackHelpful]: 1,
Expand Down Expand Up @@ -396,6 +397,7 @@ Usage: @office Ask questions about Office Add-ins development.`);
[TelemetryProperty.CopilotChatCommand]: "testCommand",
[TelemetryProperty.CorrelationId]: "testCorrelationId",
[TelemetryProperty.HostType]: "",
[TelemetryProperty.CopilotChatRelatedSampleName]: "",
},
{
[TelemetryProperty.CopilotChatFeedbackHelpful]: 0,
Expand Down

0 comments on commit 7e4566a

Please sign in to comment.