material-extensions / vscode-material-icon-theme

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

Use glob pattern for file / folder associations #330

Open JonJamesDesign opened 5 years ago

JonJamesDesign commented 5 years ago

This icon set is awesome; thanks for all the hard work so far, it's fantastic.

Further to the great work you've already done, it would be cool if I could set all files within a folder to use a certain icon; e.g:

"material-icon-theme.files.associations": {
  "**/reducers/*.js": "redux-reducer"
},

Keep up the good work.

PKief commented 5 years ago

Hi @JonJamesDesign, thank you for your kind feedback. I really like your idea, but the extensions API of VS Code doesn't support glob patterns for file icon associations at the moment. There's already an open issue in the official VS Code repository. Feel free to support it with a 👍

tyron commented 4 years ago

Is this still blocked? On the VS Code "files.associations" we can already specify wildcard at the end (e.g. "Jenkinsfile-*": "groovy"). I wish we could do the same with "material-icon-themes".


"material-icon-themes": {
   "Jenkinsfile-*": "jenkins"
}
PKief commented 4 years ago

@tyron Yes, it's still blocked my missing API support.

maurodesouza commented 2 years ago

Hi!

@PKief Is this still blocked?

PKief commented 2 years ago

Yes, unfortunately it's still blocked. The issue in the repository of VS Code is still open. Hopefully, it will be implemented someday. I'll keep you informed :)

maurodesouza commented 2 years ago

@PKief ok, thanks!

pgbradbury commented 2 years ago

@PKief Looks like this will not be supported by vscode - https://github.com/Microsoft/vscode/issues/12493#issuecomment-1084511097

zm-cttae commented 1 year ago

Thanks for posting the issue! This is possible for dot segments of the filename in linear time without breaking the current implementation. I've put in a comment over there with a code sample.

zm-cttae commented 1 year ago

reducers/*.js can be supported already! (microsoft/vscode#136656)

To get it working, we need to put in new logic when we parse material-icon-theme.file.associations.
The config key needs the <FOLDER>/ removed before processing the setting key & value.. then it should be added back to the key when appending that setting to the generated JSON.

zm-cttae commented 1 year ago

I implemented filename globs in VS Code as a PR and they will assess soon™ - microsoft/vscode#174286

PKief commented 1 year ago

@zm-cttae thanks, that looks awesome :) Hopefully the VS Code team will take a look at it and include it to the API. Would solve lots of issues here.

sadfsdfdsa commented 1 year ago

@zm-cttae sorry for bothering you, have any updates? And am I correctly got, that this issue will allow features like that https://github.com/PKief/vscode-material-icon-theme/issues/1985 ? For *_test.ts patterns or like that.

zm-cttae commented 1 year ago

The last work done is microsoft/vscode#177650 I believe Martin is busy with Webpack and theming work atm though

I am also busy setting up VSCE Toolroom migrations.. we might find time for it in the summer 🙂

zm-cttae commented 1 year ago

What I didn't realise is that Backlog =

"I am coming back to this 3 months later when my other large tickets get tested and land in production"

That gives me plenty of time to throw it together myself, I'll get on it soon :)

starball5 commented 8 months ago

Loosely related on Stack Overflow: How can I associate an icon to a file in a specific path in VS Code with the Material Icon Theme Extension?

MisterLight commented 3 months ago

Any update on this issue?

lucas-labs commented 3 months ago

Any update on this issue?

Sadly vscode still lacks support for glob/regex assignments (microsoft/vscode#174286)