(copilotHoverProvider: CopilotHoverProvider, hoverDocument: vscode.TextDocument, hoverPosition: vscode.Position, errorMessage: string)
| 1658 | } |
| 1659 | |
| 1660 | async function reportCopilotFailure(copilotHoverProvider: CopilotHoverProvider, hoverDocument: vscode.TextDocument, hoverPosition: vscode.Position, errorMessage: string): Promise<void> { |
| 1661 | telemetry.logLanguageServerEvent("CopilotHoverError", { "ErrorMessage": errorMessage }); |
| 1662 | // Display the localized default failure message in the hover. |
| 1663 | await showCopilotContent(copilotHoverProvider, hoverDocument, hoverPosition, localize("copilot.hover.error", "An error occurred while generating Copilot summary.")); |
| 1664 | } |
| 1665 | |
| 1666 | async function showCopilotContent(copilotHoverProvider: CopilotHoverProvider, hoverDocument: vscode.TextDocument, hoverPosition: vscode.Position, content?: string): Promise<boolean> { |
| 1667 | // Check if the cursor has been manually moved by the user. If so, exit. |
no test coverage detected