You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vs/base/browser/ui/tree/abstractTree.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -695,6 +695,14 @@ class FindWidget<T, TFilterData> extends Disposable {
695
695
this.findInput.inputBox.setPlaceHolder(mode===TreeFindMode.Filter ? localize('type to filter',"Type to filter") : localize('type to search',"Type to search"));
696
696
}
697
697
698
+
getvalue(): string{
699
+
returnthis.findInput.inputBox.value;
700
+
}
701
+
702
+
setvalue(value: string){
703
+
this.findInput.inputBox.value=value;
704
+
}
705
+
698
706
privatereadonlymodeToggle: ModeToggle;
699
707
privatereadonlyfindInput: FindInput;
700
708
privatereadonlyactionbar: ActionBar;
@@ -876,6 +884,7 @@ class FindController<T, TFilterData> implements IDisposable {
876
884
877
885
private_pattern='';
878
886
getpattern(): string{returnthis._pattern;}
887
+
privatepreviousPattern='';
879
888
880
889
private_mode: TreeFindMode;
881
890
getmode(): TreeFindMode{returnthis._mode;}
@@ -940,6 +949,9 @@ class FindController<T, TFilterData> implements IDisposable {
940
949
this.widget.layout(this.width);
941
950
this.widget.focus();
942
951
952
+
this.widget.value=this.previousPattern;
953
+
this.widget.select();
954
+
943
955
this._onDidChangeOpenState.fire(true);
944
956
}
945
957
@@ -953,6 +965,7 @@ class FindController<T, TFilterData> implements IDisposable {
0 commit comments