Skip to content

Commit 6704c47

Browse files
committed
explicitly mark defaultError as string
1 parent 9a67c9c commit 6704c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,7 @@ async function onCopilotHover(): Promise<void> {
14891489
}
14901490

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

0 commit comments

Comments
 (0)