Skip to content

Implement contributable tree views #26948

Closed
@sandy081

Description

@sandy081

Implement contributed views those can be shown in Explorer as trees.

  • Contribution point to describe a view
  • API to register a tree data provider for the view
  • Multi views explorer

Actions can be contributed to the following locations by giving proper when clause

  • View titlebar: view/title
  • On item:view/item/context

Example:

"contributes": {
    "menus": {
         "view/title": [
	    {
		"command": "extension.commandId",
		"when": "view == viewId",
		"group": "navigation"
	    }
         ],
         "view/item/context": [
	     {
		"command": "extension.commandId",
		"when": "view == viewId && viewItem == contextValue",
	      }
          ]
   }
}

More

  • Remember the view collapsible state and size

Deferred

  • View visibility
  • Extract icons from the resource Uri
  • Tree state persistence
  • Customizable location of the view inside explorer
  • Get children in pages
  • Ability to update the view label

Metadata

Metadata

Assignees

Labels

apiplan-itemVS Code - planned item for upcomingtree-viewsExtension tree view issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions