mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
on blur of terminal chat, if no response content, hide widget (#212831)
fix #212672
This commit is contained in:
parent
f8ee0378c0
commit
c2baa46aa5
|
@ -639,11 +639,6 @@ export interface ITerminalInstance extends IBaseTerminalInstance {
|
|||
*/
|
||||
readonly isDisposed: boolean;
|
||||
|
||||
/**
|
||||
* Whether this terminal is visible.
|
||||
*/
|
||||
readonly isVisible: boolean;
|
||||
|
||||
/**
|
||||
* Whether the terminal's pty is hosted on a remote.
|
||||
*/
|
||||
|
|
|
@ -266,7 +266,6 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
get isRemote(): boolean { return this._processManager.remoteAuthority !== undefined; }
|
||||
get remoteAuthority(): string | undefined { return this._processManager.remoteAuthority; }
|
||||
get hasFocus(): boolean { return dom.isAncestorOfActiveElement(this._wrapperElement); }
|
||||
get isVisible(): boolean { return this._isVisible; }
|
||||
get title(): string { return this._title; }
|
||||
get titleSource(): TitleEventSource { return this._titleSource; }
|
||||
get icon(): TerminalIcon | undefined { return this._getIcon(); }
|
||||
|
|
|
@ -92,7 +92,7 @@ export class TerminalChatWidget extends Disposable {
|
|||
|
||||
this._focusTracker = this._register(trackFocus(this._container));
|
||||
this._register(this._focusTracker.onDidBlur(() => {
|
||||
if (!this._instance.isVisible) {
|
||||
if (!this.inlineChatWidget.responseContent) {
|
||||
this.hide();
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue