mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 08:21:59 +00:00
fix: add relevant context only chat view is visible (#3388)
This commit is contained in:
parent
8d2439d830
commit
4338a98b8b
5
clients/vscode/src/Commands.ts
vendored
5
clients/vscode/src/Commands.ts
vendored
@ -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> = {
|
||||
|
Loading…
Reference in New Issue
Block a user