Skip to content

Commit

Permalink
fix: add relevant context only chat view is visible (#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma1lboy authored Nov 8, 2024
1 parent 8d2439d commit 4338a98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion clients/vscode/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ export class Commands {
this.chatViewProvider.addRelevantContext(fileContext);
}
};
commands.executeCommand("tabby.chatView.focus");

commands.executeCommand("tabby.chatView.focus").then(addContext);
if (this.chatViewProvider.webview?.visible) {
addContext();
}
}

commands: Record<string, (...args: never[]) => void> = {
Expand Down

0 comments on commit 4338a98

Please sign in to comment.