Skip to content

Commit f4d4971

Browse files
authored
Existing trees should react to changes to workbench.list.defaultFindMode (microsoft#156581)
fixes microsoft#156249
1 parent fad1b7c commit f4d4971

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/base/browser/ui/tree/abstractTree.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,8 @@ class FindController<T, TFilterData> implements IDisposable {
876876
return;
877877
}
878878

879-
this.widget = new FindWidget(this.view.getHTMLElement(), this.tree, this.contextViewProvider, this._mode, this.styles);
879+
this.mode = this.tree.options.defaultFindMode ?? TreeFindMode.Highlight;
880+
this.widget = new FindWidget(this.view.getHTMLElement(), this.tree, this.contextViewProvider, this.mode, this.styles);
880881
this.enabledDisposables.add(this.widget);
881882

882883
this.widget.onDidChangeValue(this.onDidChangeValue, this, this.enabledDisposables);

0 commit comments

Comments
 (0)