Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use settings JSON schema when editing local settings files

Max Brunsfelded0fa2404c3c
diff --git a/crates/zed/src/languages/json.rs b/crates/zed/src/languages/json.rs
index 406d54cc039..3947c62a6d9 100644
--- a/crates/zed/src/languages/json.rs
+++ b/crates/zed/src/languages/json.rs
@@ -135,7 +135,10 @@ impl LspAdapter for JsonLspAdapter {
},
"schemas": [
{
- "fileMatch": [schema_file_match(&paths::SETTINGS)],
+ "fileMatch": [
+ schema_file_match(&paths::SETTINGS),
+ &*paths::LOCAL_SETTINGS_RELATIVE_PATH,
+ ],
"schema": settings_schema,
},
{