Vscode-material-icon-theme: .env files for specific environments don't have icons

Created on 6 Jun 2018  路  5Comments  路  Source: PKief/vscode-material-icon-theme

.env and .env.example both get the tune icon, but other, environment-specific env files (eg .env.local, .env.dev, .env.staging, .env.prod) appear with the unknown file type icon

Most helpful comment

@kaitlynbrown Thank you for the info 馃憤
I added the file names to the extension, it will be part of the next update!

All 5 comments

@kaitlynbrown Thank you for the info 馃憤
I added the file names to the extension, it will be part of the next update!

image
.env, .env.production , .env.development is official.
.env.preview is custom.
Their ICONS should be the same :)

see here https://cli.vuejs.org/guide/mode-and-env.html#modes

@Aysnine I added them, thank you 馃憤

https://facebook.github.io/create-react-app/docs/adding-custom-environment-variables
Create React App also supports the following env files: .env.test, .env.development.local, .env.test.local, .env.production.local, which aren't currently associated with the icon. Given the popularity of CRA, perhaps these are worth officially adding too?

@richardmillen94 Yeah sure, if you like you can create a pull request with the changes if you'd like to contribute to this project :wink:

Here're the related lines of code that must be adjusted:
https://github.com/PKief/vscode-material-icon-theme/blob/59d9f4382557ac3f8946f8c1bf01ec983b075357/src/icons/fileIcons.ts#L587-L599

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GitStorageOne picture GitStorageOne  路  5Comments

RacerDelux picture RacerDelux  路  3Comments

JarvisPrestidge picture JarvisPrestidge  路  4Comments

vvni picture vvni  路  4Comments

stefan-kern picture stefan-kern  路  4Comments