From c612c5d1634cfe991f3136b785ec64533cbabfb9 Mon Sep 17 00:00:00 2001 From: Tobias Hernstig <30827238+thernstig@users.noreply.github.com> Date: Fri, 10 Feb 2023 15:22:32 +0100 Subject: [PATCH] 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.* --- extensions/shellscript/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/shellscript/package.json b/extensions/shellscript/package.json index 36031a33840..72224868c2d 100644 --- a/extensions/shellscript/package.json +++ b/extensions/shellscript/package.json @@ -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": [