Skip to content

Commit

Permalink
Add shellscript filenamePatterns for .env.* (microsoft#173426)
Browse files Browse the repository at this point in the history
* Add shellscript `filenamePatterns` for `.env*`

In some cases, projects use `.env` files such as `.env.development`
or `.env.production` or similar things.

Adding this to extensions/shellscript/package.json as a
`filenamePatterns` avoids developers having to add specific
`"files.associations"` to their VS Code settings files.

Fixes microsoft#173425

* Change pattern from .env* to .env.*
  • Loading branch information
thernstig authored and c-claeys committed Feb 16, 2023
1 parent 591637e commit 96b51ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/shellscript/package.json
Expand Up @@ -67,6 +67,9 @@
"bashrc_Apple_Terminal",
"zshrc_Apple_Terminal"
],
"filenamePatterns": [
".env.*"
],
"firstLine": "^#!.*\\b(bash|fish|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",
"configuration": "./language-configuration.json",
"mimetypes": [
Expand Down

0 comments on commit 96b51ad

Please sign in to comment.