vscode/extensions/shellscript/package.json
Tobias Hernstig c612c5d163
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.*
2023-02-10 14:22:32 +00:00

104 lines
2.4 KiB
JSON

{
"name": "shellscript",
"displayName": "%displayName%",
"description": "%description%",
"version": "1.0.0",
"publisher": "vscode",
"license": "MIT",
"engines": {
"vscode": "*"
},
"scripts": {
"update-grammar": "node ../node_modules/vscode-grammar-updater/bin jeff-hykin/better-shell-syntax autogenerated/shell.tmLanguage.json ./syntaxes/shell-unix-bash.tmLanguage.json"
},
"contributes": {
"languages": [
{
"id": "shellscript",
"aliases": [
"Shell Script",
"shellscript",
"bash",
"fish",
"sh",
"zsh",
"ksh",
"csh"
],
"extensions": [
".sh",
".bash",
".bashrc",
".bash_aliases",
".bash_profile",
".bash_login",
".ebuild",
".profile",
".bash_logout",
".xprofile",
".xsession",
".xsessionrc",
".Xsession",
".zsh",
".zshrc",
".zprofile",
".zlogin",
".zlogout",
".zshenv",
".zsh-theme",
".fish",
".ksh",
".csh",
".cshrc",
".tcshrc",
".yashrc",
".yash_profile"
],
"filenames": [
"APKBUILD",
"PKGBUILD",
".envrc",
".hushlogin",
"zshrc",
"zshenv",
"zlogin",
"zprofile",
"zlogout",
"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": [
"text/x-shellscript"
]
}
],
"grammars": [
{
"language": "shellscript",
"scopeName": "source.shell",
"path": "./syntaxes/shell-unix-bash.tmLanguage.json",
"balancedBracketScopes": [
"*"
],
"unbalancedBracketScopes": [
"meta.scope.case-pattern.shell"
]
}
],
"configurationDefaults": {
"[shellscript]": {
"files.eol": "\n"
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/vscode.git"
}
}