-
Problem statement: The "file_types": {
"JSON": ["flake.lock"],
"JSONC": [
"**/.zed/**/*.json",
"**/zed/**/*.json",
"**/Zed/**/*.json",
"tsconfig.json",
"pyrightconfig.json"
]
},
"languages":
"JSON": {
"prettier": {
"allowed": true
}
},
"JSONC": {
"prettier": {
"allowed": true
}
}
}, Further, the UI and command for selecting which settings to use is called the "language selector". Solution proposal: Make "languages":
"JSON": {
"file_types": ["flake.lock"],
"prettier": {
"allowed": true
}
},
"JSONC": {
"file_types": [
"**/.zed/**/*.json",
"**/zed/**/*.json",
"**/Zed/**/*.json",
"tsconfig.json",
"pyrightconfig.json"
],
"prettier": {
"allowed": true
}
}
}, I am mostly curious about the reasons behind this design decision or whether this proposal has been considered before. I realize that it is fairly low-stakes and probably not worth a breaking change at this time. I got here from the Contributing page, which says:
Though the only categories are Q&A and Show and tell. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I am realizing that each set of settings in |
Beta Was this translation helpful? Give feedback.
I am realizing that each set of settings in
"languages"
represents overrides of first-level settings. I had thought that the key/value pairs were settings that were only found within the"languages"
settings. Now it makes sense why"file_types"
doesn't belong in there.