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:
Peter Tripp 2024-11-19 00:56:45 +00:00 committed by GitHub
parent e7a0890086
commit 343c88574a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 12 deletions

View file

@ -873,15 +873,8 @@
//
"file_types": {
"Plain Text": ["txt"],
"JSON": ["flake.lock"],
"JSONC": [
"**/.zed/**/*.json",
"**/zed/**/*.json",
"**/Zed/**/*.json",
"tsconfig.json",
"pyrightconfig.json"
],
"TOML": ["uv.lock"]
"JSONC": ["**/.zed/**/*.json", "**/zed/**/*.json", "**/Zed/**/*.json"],
"Shell Script": [".env.*"]
},
/// 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:

View file

@ -1,6 +1,6 @@
name = "JSON"
grammar = "json"
path_suffixes = ["json"]
path_suffixes = ["json", "flake.lock"]
line_comments = ["// "]
autoclose_before = ",]}"
brackets = [

View file

@ -1,6 +1,6 @@
name = "JSONC"
grammar = "jsonc"
path_suffixes = ["jsonc"]
path_suffixes = ["jsonc", "tsconfig.json", "pyrightconfig.json"]
line_comments = ["// "]
autoclose_before = ",]}"
brackets = [

View file

@ -1,6 +1,6 @@
name = "TOML"
grammar = "toml"
path_suffixes = ["Cargo.lock", "toml", "Pipfile"]
path_suffixes = ["Cargo.lock", "toml", "Pipfile", "uv.lock"]
line_comments = ["# "]
autoclose_before = ",]}"
brackets = [