twlamb
twlamb

Reputation: 53

Extend icon theme with extension Visual Studio Code

Is it possible to extend an icon set with your extension? If so, how can I add this to my language extension?

I have an extension for our custom language, and I'd like to include icons for the supported file types.

Upvotes: 4

Views: 1208

Answers (1)

Gama11
Gama11

Reputation: 34138

No, this is currently not supported. There's an open feature request here:

#14662 - [file icons] Support for extending the file icon theme from an extension

Update on Jan 3, 2022

#140047 - [api] finalize icon property of the language contribution point

Api has been finalised to use a png or svg icon in the language definition.

{
  "contributes": {
    "languages": [
      {
        "id": "latex",
        // ...
        "icon": {
          "light": "./icons/latex-light.png",
          "dark": "./icons/latex-dark.png"
        }
      }
    ]
    ...
}

Upvotes: 4

Related Questions