Improve file_types in default.json (#20429)
Detect .env.* as Shell Script Move non glob json/jsonc/toml file_types into langauges/*/config.toml
This commit is contained in:
parent
e7a0890086
commit
343c88574a
4 changed files with 5 additions and 12 deletions
|
@ -873,15 +873,8 @@
|
||||||
//
|
//
|
||||||
"file_types": {
|
"file_types": {
|
||||||
"Plain Text": ["txt"],
|
"Plain Text": ["txt"],
|
||||||
"JSON": ["flake.lock"],
|
"JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json"],
|
||||||
"JSONC": [
|
"Shell Script": [".env.*"]
|
||||||
"**/.zed/**/*.json",
|
|
||||||
"**/zed/**/*.json",
|
|
||||||
"**/Zed/**/*.json",
|
|
||||||
"tsconfig.json",
|
|
||||||
"pyrightconfig.json"
|
|
||||||
],
|
|
||||||
"TOML": ["uv.lock"]
|
|
||||||
},
|
},
|
||||||
/// By default use a recent system version of node, or install our own.
|
/// By default use a recent system version of node, or install our own.
|
||||||
/// You can override this to use a version of node that is not in $PATH with:
|
/// You can override this to use a version of node that is not in $PATH with:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name = "JSON"
|
name = "JSON"
|
||||||
grammar = "json"
|
grammar = "json"
|
||||||
path_suffixes = ["json"]
|
path_suffixes = ["json", "flake.lock"]
|
||||||
line_comments = ["// "]
|
line_comments = ["// "]
|
||||||
autoclose_before = ",]}"
|
autoclose_before = ",]}"
|
||||||
brackets = [
|
brackets = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name = "JSONC"
|
name = "JSONC"
|
||||||
grammar = "jsonc"
|
grammar = "jsonc"
|
||||||
path_suffixes = ["jsonc"]
|
path_suffixes = ["jsonc", "tsconfig.json", "pyrightconfig.json"]
|
||||||
line_comments = ["// "]
|
line_comments = ["// "]
|
||||||
autoclose_before = ",]}"
|
autoclose_before = ",]}"
|
||||||
brackets = [
|
brackets = [
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name = "TOML"
|
name = "TOML"
|
||||||
grammar = "toml"
|
grammar = "toml"
|
||||||
path_suffixes = ["Cargo.lock", "toml", "Pipfile"]
|
path_suffixes = ["Cargo.lock", "toml", "Pipfile", "uv.lock"]
|
||||||
line_comments = ["# "]
|
line_comments = ["# "]
|
||||||
autoclose_before = ",]}"
|
autoclose_before = ",]}"
|
||||||
brackets = [
|
brackets = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue