From 14250660fa888a07c1f794eb300ffa1c4b636099 Mon Sep 17 00:00:00 2001 From: Ryan Holinshead <> Date: Mon, 26 Feb 2024 11:31:13 -0500 Subject: [PATCH] Don't Show Server Update Error for Untitled Configs --- vscode-extension/src/aiConfigEditor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vscode-extension/src/aiConfigEditor.ts b/vscode-extension/src/aiConfigEditor.ts index 7809e0ee7..c046110ff 100644 --- a/vscode-extension/src/aiConfigEditor.ts +++ b/vscode-extension/src/aiConfigEditor.ts @@ -208,6 +208,11 @@ export class AIConfigEditorProvider implements vscode.CustomTextEditorProvider { "Ignoring server update error due to webview disposal" ); return; + } else if (document.isUntitled) { + // Saving untitled document triggers content change (i.e. setting full document + // content) but the server can't load from untitled:/ file scheme. Just ignore + // this scenario instead of showing the notification + console.info("Ignoring server update error for untitled document"); } webviewPanel.webview.postMessage({