Skip to content

Commit

Permalink
explicitly mark defaultError as string
Browse files Browse the repository at this point in the history
  • Loading branch information
spebl committed Nov 27, 2024
1 parent 9a67c9c commit 6704c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ async function onCopilotHover(): Promise<void> {
}

async function reportCopilotFailure(copilotHoverProvider: CopilotHoverProvider, hoverDocument: vscode.TextDocument, hoverPosition: vscode.Position, customError?: string): Promise<void> {
const defaultError = "An error occurred while generating Copilot summary.";
const defaultError: string = "An error occurred while generating Copilot summary.";
const errorMessage = customError ? customError : defaultError;
telemetry.logLanguageServerEvent("CopilotHoverError", { errorMessage });
// Display the localized default failure message in the hover.
Expand Down

0 comments on commit 6704c47

Please sign in to comment.