Skip to content

Allow TreeItem.label to support MarkdownStringΒ #115365

@TylerLeonhardt

Description

@TylerLeonhardt

Looking at the API for TreeItemLabel it seems a bit limited. I'm trying to avoid moving to a webview view and what I need is some way to have certain nodes in a tree view be crossed out. It'd be nice if TreeItem.label could be extended to support MarkdownString.

Proposal:

export class TreeItem {
		/**
		 * A human-readable string describing this item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri).
		 */
		label?: string | TreeItemLabel | MarkdownString;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions