From 6704c47c9ea5ac809e89603b44c1e097a4abb91d Mon Sep 17 00:00:00 2001 From: spebl Date: Wed, 27 Nov 2024 13:43:55 -0800 Subject: [PATCH] explicitly mark defaultError as string --- Extension/src/LanguageServer/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extension/src/LanguageServer/extension.ts b/Extension/src/LanguageServer/extension.ts index 2486a0b354..7f0f4338df 100644 --- a/Extension/src/LanguageServer/extension.ts +++ b/Extension/src/LanguageServer/extension.ts @@ -1489,7 +1489,7 @@ async function onCopilotHover(): Promise { } async function reportCopilotFailure(copilotHoverProvider: CopilotHoverProvider, hoverDocument: vscode.TextDocument, hoverPosition: vscode.Position, customError?: string): Promise { - 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.