Add shellscript `filenamePatterns` for `.env.*` (#173426)

* 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 #173425

* Change pattern from .env* to .env.*
pull/174072/head
Tobias Hernstig 2023-02-10 15:22:32 +01:00 committed by GitHub
parent 58c6383d84
commit c612c5d163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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": [