Skip to content

Commit

Permalink
Fix dotenv file associations
Browse files Browse the repository at this point in the history
Commit f317401 updated dotenv file associations to include files that
begin with `env` instead of `.env`. Dotenv files are sometimes named
`environment.env` or simply `env`, so this was somewhat helpful. However
it also meant that files like `environment.md` would be incorrectly
associated with `dotenv` when they should be associated with `markdown`.
This commit will adjust the syntax to use more specific glob patterns,
with curly braces used to group conditions and reduce code duplication.

https://code.visualstudio.com/docs/editor/glob-patterns
https://code.visualstudio.com/docs/languages/identifiers
  • Loading branch information
br3ndonland committed Dec 20, 2024
1 parent 0619068 commit 3e48726
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vscode/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
}
},
"files.associations": {
"**/.env*": "dotenv",
"**/env*": "dotenv",
"{**/*.env,**/env}": "dotenv",
"**/*.hujson": "jsonc",
"**/.zfunc/*": "shellscript"
},
Expand Down

0 comments on commit 3e48726

Please sign in to comment.