Skip to content

Commit

Permalink
make ThemeIcon#ctor public, #84695
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Dec 17, 2019
1 parent 21ca27d commit f908b41
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,8 @@ declare module 'vscode' {
}

/**
* A reference to a named icon. Currently only [File](#ThemeIcon.File) and [Folder](#ThemeIcon.Folder) are supported.
* 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.
*/
export class ThemeIcon {
Expand All @@ -804,7 +805,11 @@ declare module 'vscode' {
*/
static readonly Folder: ThemeIcon;

private constructor(id: string);
/**
* Creates a reference to a theme icon.
* @param id id of the icon. The avaiable icons are listed in https://microsoft.github.io/vscode-codicons/dist/codicon.html.
*/
constructor(id: string);
}

/**
Expand Down

0 comments on commit f908b41

Please sign in to comment.