Skip to content

Commit

Permalink
fix(vscode): do not set default context to null when active editor is…
Browse files Browse the repository at this point in the history
… output panel.
  • Loading branch information
icycodes committed Jan 23, 2025
1 parent a73518e commit 72a0a33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clients/vscode/src/chat/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,11 @@ export class ChatWebview {
}

private async notifyActiveEditorSelectionChange(editor: TextEditor | undefined) {
if (editor && editor.document.uri.scheme === "output") {
// do not update when the active editor is an output channel
return;
}

if (!editor || !isValidForSyncActiveEditorSelection(editor)) {
await this.client?.updateActiveSelection(null);
return;
Expand Down

0 comments on commit 72a0a33

Please sign in to comment.