提交 0ef0d2d6 编写于 作者: R rebornix

fix #109765.

上级 97664e14
......@@ -422,6 +422,11 @@ export interface ITerminalInstance {
*/
notifyFindWidgetFocusChanged(isFocused: boolean): void;
/**
* Notifies the terminal to refresh its focus state based on the active document elemnet in DOM
*/
refreshFocusState(): void;
/**
* Focuses the terminal instance if it's able to (xterm.js instance exists).
*
......
......@@ -735,6 +735,10 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._terminalFocusContextKey.set(terminalFocused);
}
public refreshFocusState() {
this.notifyFindWidgetFocusChanged(false);
}
public dispose(immediate?: boolean): void {
this._logService.trace(`terminalInstance#dispose (id: ${this.id})`);
......
......@@ -129,6 +129,9 @@ export class TerminalViewPane extends ViewPane {
}
} else {
this._terminalService.getActiveTab()?.setVisible(false);
this._terminalService.terminalInstances.forEach(instance => {
instance.notifyFindWidgetFocusChanged(false);
});
}
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册