Skip to content

Commit

Permalink
Don't Show Server Update Error for Untitled Configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Holinshead committed Feb 26, 2024
1 parent 20a144c commit 1425066
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vscode-extension/src/aiConfigEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 1425066

Please sign in to comment.