2

Im making an extension and I'm curious is it possible to add a search filter/box to a tree component?

Im currently coding the extension in javascript but im not sure if its possible or not

This is what i want to add in at the top of my tree view

FourthDZ
  • 21
  • 1
  • use a `WebViewView`, you can use any HTML/CSS/JS you want – rioV8 Jan 25 '21 at 04:18
  • Check [VSCode 1.70 (July 2022)](https://stackoverflow.com/a/73039128/6309) which seems to have implemented something similar. – VonC Jul 19 '22 at 14:57

1 Answers1

1

It will be built-in to vscode in v1.70. Here it is working in a treeView that I wrote for vertical tabgroups:

find in a tree view

The placement of the find widget is a little unfortunate right now.

WHen you have focus in the treeView Ctrl+F is bound to the command list.find which brings up the Find in list/treeView widget.

You need to enable the filter option icon to see it work.

Mark
  • 143,421
  • 24
  • 428
  • 436