diff --git a/server/src/copilot/llm/llmManager.ts b/server/src/copilot/llm/llmManager.ts index 3413ebe..9f4bfe6 100644 --- a/server/src/copilot/llm/llmManager.ts +++ b/server/src/copilot/llm/llmManager.ts @@ -41,6 +41,11 @@ async function handleErrors(updatedContent: string, promptConfig: PromptConfig, promptConfig.previousError = errors; } + if (GLOBAL_STATE.connection) { + GLOBAL_STATE.diagnostics.clearErrors(tempDocumentName, 'model'); + GLOBAL_STATE.diagnostics.send(GLOBAL_STATE.connection); + } + return errors; }