Skip to content

Commit

Permalink
don't focus elements from hidden chat widget (#210174)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Apr 11, 2024
1 parent f9158a4 commit 004a2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/chat/browser/chatWidget.ts
Expand Up @@ -621,7 +621,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
this.requestInProgress.set(this.viewModel.requestInProgress);

this.onDidChangeItems();
if (events.some(e => e?.kind === 'addRequest')) {
if (events.some(e => e?.kind === 'addRequest') && this.visible) {
revealLastElement(this.tree);
this.focusInput();
}
Expand Down

0 comments on commit 004a2c4

Please sign in to comment.