Skip to content

Commit 3c0865b

Browse files
committed
fix: improve tombi file association
1 parent dbfb766 commit 3c0865b

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

docs/src/content/docs/reference/mise.toml-language-support.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ For the best experience with syntax highlighting and autocompletion in `mise.tom
1515

1616
The extension will notify you on startup if neither is installed.
1717

18+
`mise-vscode` associates the [mise JSON schema](https://mise.jdx.dev/schema/mise.json)
19+
with all mise configuration files for these extensions, including environment and
20+
platform-specific ones such as `mise.local.toml`, `mise.linux.toml`, or
21+
`mise/config.macos-arm64.toml` (see [`auto_env`](https://mise.jdx.dev/configuration/environments.html)),
22+
so autocompletion and validation work in all of them.
23+
1824
`mise-vscode` provides syntax highlighting for `tera` used for
1925
[templating](https://mise.jdx.dev/templates.html) in `mise.toml` files
2026

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
"filenames": [
7575
"mise.lock"
7676
],
77+
"filenamePatterns": [
78+
"mise.*.lock"
79+
],
7780
"configuration": "./syntaxes/toml-language-configuration.json"
7881
},
7982
{
@@ -90,12 +93,16 @@
9093
"tomlValidation": [
9194
{
9295
"fileMatch": [
93-
".mise.toml",
94-
".mise.*.toml",
95-
"mise.toml",
96-
"mise.*.toml",
96+
"**/mise.toml",
97+
"**/.mise.toml",
98+
"**/mise.*.toml",
99+
"**/.mise.*.toml",
100+
"**/mise/config.toml",
97101
"**/.mise/config.toml",
98-
"**/mise/config.toml"
102+
"**/mise/config.*.toml",
103+
"**/.mise/config.*.toml",
104+
"**/mise/conf.d/*.toml",
105+
"**/.mise/conf.d/*.toml"
99106
],
100107
"url": "https://mise.jdx.dev/schema/mise.json"
101108
}

0 commit comments

Comments
 (0)