vscode-ext-codicons
This module provides objects to work with codicons while developing VS Code extensions.
Codicons where officially released in February 2020 (publishing notes), being now possible to extension developers to reuse them. Prior to that, you only had available support to GitHub Octicons.
Installation
npm install vscode-ext-codicons
Usage
import { ThemeIcons, codicons } from "vscode-ext-codicons";
...
class BookmarkNode extends vscode.TreeItem {
...
// instead of
this.iconPath = new ThemeIcon('git-merge');
// use
this.iconPath = ThemeIcons.git_merge;
}
...
// instead of
statusItem.text = "$(folder) " + folderName;
// use
statusItem.text = codicons.folder + " " + folderName;
Support
If you find it useful, please consider supporting it.
License
MIT © Alessandro Fragnani