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.
npm install vscode-ext-codicons
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;
If you find it useful, please consider supporting it.
MIT © Alessandro Fragnani