Skip to content

Commit 3c7233e

Browse files
committed
Clean up
1 parent 0c2276c commit 3c7233e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/vs/workbench/contrib/terminalContrib/find/browser/terminal.find.contribution.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
3030

3131
private _findWidget: Lazy<TerminalFindWidget>;
3232
private _lastLayoutDimensions: IDimension | undefined;
33-
private _focusState: boolean = false;
3433

3534
get findWidget(): TerminalFindWidget { return this._findWidget.value; }
3635

@@ -48,12 +47,10 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
4847

4948
// Track focus and set state so we can force the scroll bar to be visible
5049
findWidget.focusTracker.onDidFocus(() => {
51-
this._focusState = true;
5250
this._instance.forceScrollbarVisibility();
5351
terminalService.setActiveInstance(this._instance);
5452
});
5553
findWidget.focusTracker.onDidBlur(() => {
56-
this._focusState = false;
5754
this._instance.resetScrollbarVisibility();
5855
});
5956

@@ -77,12 +74,7 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
7774

7875
override dispose() {
7976
super.dispose();
80-
81-
const focusTerminal = this._focusState;
8277
this._findWidget.rawValue?.dispose();
83-
if (focusTerminal) {
84-
this._instance.focus();
85-
}
8678
}
8779

8880
}

0 commit comments

Comments
 (0)