mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
use focus last message
This commit is contained in:
parent
1bcfc3e9e1
commit
c0c2a8ae72
|
@ -91,7 +91,7 @@ registerActiveXtermAction({
|
|||
return;
|
||||
}
|
||||
const contr = TerminalChatController.activeChatWidget || TerminalChatController.get(activeInstance);
|
||||
contr?.chatWidget?.focusResponse();
|
||||
contr?.chatWidget?.inlineChatWidget.chatWidget.focusLastMessage();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -158,12 +158,6 @@ export class TerminalChatWidget extends Disposable {
|
|||
focus(): void {
|
||||
this._inlineChatWidget.focus();
|
||||
}
|
||||
focusResponse(): void {
|
||||
const responseElement = this._inlineChatWidget.domNode.querySelector('.monaco-list');
|
||||
if (responseElement instanceof HTMLElement) {
|
||||
responseElement.focus();
|
||||
}
|
||||
}
|
||||
hasFocus(): boolean {
|
||||
return this._inlineChatWidget.hasFocus();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue