File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/vs/workbench/contrib/terminalContrib/find/browser Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
30
30
31
31
private _findWidget : Lazy < TerminalFindWidget > ;
32
32
private _lastLayoutDimensions : IDimension | undefined ;
33
- private _focusState : boolean = false ;
34
33
35
34
get findWidget ( ) : TerminalFindWidget { return this . _findWidget . value ; }
36
35
@@ -48,12 +47,10 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
48
47
49
48
// Track focus and set state so we can force the scroll bar to be visible
50
49
findWidget . focusTracker . onDidFocus ( ( ) => {
51
- this . _focusState = true ;
52
50
this . _instance . forceScrollbarVisibility ( ) ;
53
51
terminalService . setActiveInstance ( this . _instance ) ;
54
52
} ) ;
55
53
findWidget . focusTracker . onDidBlur ( ( ) => {
56
- this . _focusState = false ;
57
54
this . _instance . resetScrollbarVisibility ( ) ;
58
55
} ) ;
59
56
@@ -77,12 +74,7 @@ class TerminalFindContribution extends Disposable implements ITerminalContributi
77
74
78
75
override dispose ( ) {
79
76
super . dispose ( ) ;
80
-
81
- const focusTerminal = this . _focusState ;
82
77
this . _findWidget . rawValue ?. dispose ( ) ;
83
- if ( focusTerminal ) {
84
- this . _instance . focus ( ) ;
85
- }
86
78
}
87
79
88
80
}
You can’t perform that action at this time.
0 commit comments