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.