Skip to content

Commit 7073515

Browse files
committed
fix smoke test
1 parent 21f2e10 commit 7073515

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,9 @@ export class ChatWidget extends Disposable implements IChatWidget {
10851085

10861086
if (numItems === 0) {
10871087
this.refreshHistoryList();
1088-
this.focusInput();
1088+
if (!dom.isAncestorOfActiveElement(this.container)) {
1089+
this.focusInput();
1090+
}
10891091
}
10901092
}
10911093

0 commit comments

Comments
 (0)