vscode-ext-codicons
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i vscode-ext-codicons

Weekly Downloads

17

Version

1.6.0

License

MIT

Unpacked Size

123 kB

Total Files

6

Last publish

Collaborators

  • alefragnani