Skip to content

[Bug]: Custom SVG folder icons are not working #3477

@Yashrajsingh2001

Description

@Yashrajsingh2001

Describe the bug

Even after doing the exact steps mentioned here: https://github.com/material-extensions/vscode-material-icon-theme?#custom-svg-folder-icons
The custom SVG folder icons are not working.

The icon gets removed, but the custom icon does not get added.

To Reproduce

Custom SVG folder icons

Similar to the files, it is also possible to reference your own SVG icons for folder icons. Here it's important to provide two SVG files: one for the folder if it's closed and another one for the opened state. These two files - let's call them "folder-sample.svg" and "folder-sample-open.svg" - have to be placed into a directory which is relative to the extensions dist folder. This directory has to be somewhere inside of the .vscode/extensions folder.

In our example we place them into an icons folder inside of the .vscode/extensions folder:

.vscode
 ┗ extensions
   ┗ icons
     ┣ folder-sample.svg
     ┗ folder-sample-open.svg

In the settings.json (User Settings only!) the folder icons can be associated to a folder name (e.g. "src") like this:

"material-icon-theme.folders.associations": {
    "src": "../../../../icons/folder-sample"
}

Expected behavior

The icon should change

Screenshots

".bob" icon is removed instead of getting updated based on my custom svg.
Image

Computer information

  • OS edition: Apple M3 Pro
  • Extension version: 5.35.0
  • VSCode version: 1.119.0 (Universal)

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA confirmed issue caused by a software defect

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions