Skip to content

Commit

Permalink
spell out places that support inline theme icons, #87165
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jan 27, 2020
1 parent a6df4b3 commit 3514867
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,9 @@ declare module 'vscode' {
* A reference to a named icon. Currently, [File](#ThemeIcon.File), [Folder](#ThemeIcon.Folder),
* and [codicons](https://microsoft.github.io/vscode-codicons/dist/codicon.html) are supported.
* Using a theme icon is preferred over a custom icon as it gives 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)"`.
*/
export class ThemeIcon {
/**
Expand Down Expand Up @@ -1578,17 +1581,20 @@ declare module 'vscode' {
export interface QuickPickItem {

/**
* A human-readable string which is rendered prominent.
* A human-readable string which is rendered prominent. Supports rendering of [theme icons](#ThemeIcon) via
* the `$(<name>)`-syntax.
*/
label: string;

/**
* A human-readable string which is rendered less prominent in the same line.
* A human-readable string which is rendered less prominent in the same line. Supports rendering of
* [theme icons](#ThemeIcon) via the `$(<name>)`-syntax.
*/
description?: string;

/**
* A human-readable string which is rendered less prominent in a separate line.
* A human-readable string which is rendered less prominent in a separate line. Supports rendering of
* [theme icons](#ThemeIcon) via the `$(<name>)`-syntax.
*/
detail?: string;

Expand Down Expand Up @@ -2342,6 +2348,9 @@ declare module 'vscode' {
/**
* The MarkdownString represents human-readable text that supports formatting via the
* markdown syntax. Standard markdown is supported, also tables, but no embedded html.
*
* When created with `supportThemeIcons` then rendering of [theme icons](#ThemeIcon) via
* the `$(<name>)`-syntax is supported.
*/
export class MarkdownString {

Expand Down Expand Up @@ -5557,8 +5566,8 @@ declare module 'vscode' {
isBackground: boolean;

/**
* A human-readable string describing the source of this
* shell task, e.g. 'gulp' or 'npm'.
* A human-readable string describing the source of this shell task, e.g. 'gulp'
* or 'npm'. Supports rendering of [theme icons](#ThemeIcon) via the `$(<name>)`-syntax.
*/
source: string;

Expand Down

0 comments on commit 3514867

Please sign in to comment.