mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
fix #208731
This commit is contained in:
parent
9ed28b5d67
commit
1bcfc3e9e1
|
@ -159,7 +159,7 @@ export class TerminalChatWidget extends Disposable {
|
|||
this._inlineChatWidget.focus();
|
||||
}
|
||||
focusResponse(): void {
|
||||
const responseElement = this._inlineChatWidget.domNode.querySelector(ChatElementSelectors.ResponseEditor) || this._inlineChatWidget.domNode.querySelector(ChatElementSelectors.ResponseMessage);
|
||||
const responseElement = this._inlineChatWidget.domNode.querySelector('.monaco-list');
|
||||
if (responseElement instanceof HTMLElement) {
|
||||
responseElement.focus();
|
||||
}
|
||||
|
@ -190,7 +190,3 @@ export class TerminalChatWidget extends Disposable {
|
|||
}
|
||||
}
|
||||
|
||||
const enum ChatElementSelectors {
|
||||
ResponseEditor = '.chatMessageContent textarea',
|
||||
ResponseMessage = '.chatMessageContent',
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue