material-extensions / vscode-material-icon-theme

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

[Icon Request] dotenv #1699

Open motdotla opened 2 years ago

motdotla commented 2 years 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 2 years ago

Up

PKief commented 2 years 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 2 years 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 1 year 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"
  }
}