Skip to content

Commit 004a2c4

Browse files
authored
don't focus elements from hidden chat widget (microsoft#210174)
fixes microsoft/vscode-copilot#5055
1 parent f9158a4 commit 004a2c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
621621
this.requestInProgress.set(this.viewModel.requestInProgress);
622622

623623
this.onDidChangeItems();
624-
if (events.some(e => e?.kind === 'addRequest')) {
624+
if (events.some(e => e?.kind === 'addRequest') && this.visible) {
625625
revealLastElement(this.tree);
626626
this.focusInput();
627627
}

0 commit comments

Comments
 (0)