ThemeIcon

open class ThemeIcon(source)

A reference to a named icon. Currently, File}, {@link ThemeIcon.Folder Folder, and ThemeIcon ids are supported. Using a theme icon is preferred over a custom icon as it gives product theme authors the possibility to change the icons.

Note that theme icons can also be rendered inside labels and descriptions. Places that support theme icons spell this out and they use the $(<name>)-syntax, for instance quickPick.label = "Hello World $(globe)".

Online Documentation

Constructors

Link copied to clipboard
constructor(id: String, color: ThemeColor = definedExternally)

Creates a reference to a theme icon.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The optional ThemeColor of the icon. The color is currently only used in TreeItem.

Link copied to clipboard
val id: String

The id of the icon. The available icons are listed in https://code.visualstudio.com/api/references/icons-in-labels#icon-listing.