Skip to content

Commit 7f4cde9

Browse files
committed
fix typo and update telemetry for content exclusion case
1 parent 2262010 commit 7f4cde9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,10 +1433,9 @@ async function onCopilotHover(): Promise<void> {
14331433
for (const file of requestInfo.files) {
14341434
const fileUri = vscode.Uri.file(file);
14351435
if (await vscodelm.fileIsIgnored(fileUri, copilotHoverProvider.getCurrentHoverCancellationToken() ?? CancellationToken.None)) {
1436-
// Context is not available for this file.
1437-
telemetry.logLanguageServerEvent("CopilotHover", { "Message": "Copilot summary is not available for definition or declaration." });
1436+
telemetry.logLanguageServerEvent("CopilotHover", { "Message": "Copilot summary is not available due to content exclusion." });
14381437
await showCopilotContent(copilotHoverProvider, hoverDocument, hoverPosition, localize("copilot.hover.unavailable", "Copilot summary is not available.") + "\n\n" +
1439-
localize("copilot.hover.excluded", "The file containing this symbol's defintion or declaration has been excluded from use with Copilot."));
1438+
localize("copilot.hover.excluded", "The file containing this symbol's definition or declaration has been excluded from use with Copilot."));
14401439
return;
14411440
}
14421441
}

0 commit comments

Comments
 (0)