fix(vscode): resolve chat view before commands (#1237)

* fix(vscode): resolve chat view before commands

* fix(vscode): guard chat command payload delivery

---------

Co-authored-by: Isaac Sanchez <isanchez-hawkins@arize.com>
This commit is contained in:
Isaac Sanchez-Hawkins
2026-05-12 11:02:42 +03:00
committed by GitHub
co-authored by Isaac Sanchez
parent 9816f5dd6c
commit 3c7c20e1b6
2 changed files with 44 additions and 10 deletions
+4
View File
@@ -37,6 +37,10 @@ export class ChatViewProvider implements vscode.WebviewViewProvider {
return this._view?.visible ?? false;
}
public hasResolvedView() {
return this._view !== undefined;
}
// Cache latest status/URL for when webview is resolved after connection is ready
private _cachedStatus: ConnectionStatus = 'connecting';
private _cachedError?: string;