material-extensions / vscode-material-icon-theme

Available on the VSCode Marketplace
https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme
MIT License
2.06k stars 631 forks source link

[Feature Request] Add `customIconPath` configuration for custom icons #1029

Open Antyos opened 3 years ago

Antyos commented 3 years ago

This is a continuation of the discussion following the closing of #984.

Instead of specifying a relative path from the icon directory of this extension, it would be useful to have a separate configuration to set a path (preferably absolute, but relative works too) to a folder containing custom icons. Then, each icon could be specified just by its name instead of an entire path.

The proposed config might look like:

"material-icon-theme.customIconPath": "~/.vscode/icons",
"material-icon-theme.files.association": {
    "fileName.ts": "sample"
}

For the icon:

.vscode
 ┣ extensions
 ┗ icons
   ┗ sample.svg

Note: Assuming in this theoretical implementation, the old location for the icons folder works again.

This is heavily dependent on what the VS Code API allows.

Perhaps if the full implementation isn't possible, the extension could at least check a few locations, such as .vscode/extensions/icons/ for icons so the custom icons specified in the configuration don't need the ../../icons/ prefix.

F1LT3R commented 10 months ago

It would be really good to see this feature added!

I would love to be able to customize folder and file icons for teams, and share the configuration in the project/workspace .vscode/settings.json.

This would really help new developers differentiate different parts of the codebase visually.

+1