material-extensions / vscode-material-icon-theme

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

[Icon Request] dotenv #1699

Open motdotla opened 1 year ago

motdotla commented 1 year ago

Icon Type

File Names

Graphic ideas

dotenv

Sources for that format:

Additional context

.env files have become a defacto standard. It would be so awesome if material icon users like myself were able to get a pretty icon for them.

Thank you for considering! Great project!

LaCocoRoco commented 1 year ago

Up

PKief commented 1 year ago

I was wondering what's the problem with the current icon?

image

The request file names as mentioned are not possible due to limited VS Code API restrictions (see #330). So these file names are not possible:

.env.example .env.*

motdotla commented 1 year ago

The request file names as mentioned are not possible due to limited VS Code API restrictions (see https://github.com/PKief/vscode-material-icon-theme/issues/330). So these file names are not possible:

Makes sense.

was wondering what's the problem with the current icon

It's generic. It would be wonderful for users to have the icon they are most familiar with when glancing at their env files.

PatrickMunsey commented 11 months ago

I've managed to get something working to address this issue for my setup. I already had a setting fore file.associations for linting etc that does support globs. I then just associated all env files with the tune icon. Hope this helps?

//.vscode/settings.json
{
  "files.associations": {
    "**.env": "env",
    "**.env.dev": "env",
    "**.env.test": "env",
    "**.env.prod": "env",
    "**.env.template": "env",
    "**.env.*": "env"
  },
  "material-icon-theme.languages.associations": {
    "env": "tune"
  }
}