diff --git a/crates/languages/src/json.rs b/crates/languages/src/json.rs index a62e474204..34853da7a6 100644 --- a/crates/languages/src/json.rs +++ b/crates/languages/src/json.rs @@ -84,6 +84,10 @@ impl JsonLspAdapter { "enable": true, }, "schemas": [ + { + "fileMatch": ["tsconfig.json"], + "schema":tsconfig_schema + }, { "fileMatch": [ schema_file_match(&paths::SETTINGS), @@ -101,11 +105,8 @@ impl JsonLspAdapter { &*paths::LOCAL_TASKS_RELATIVE_PATH, ], "schema": tasks_schema, - }, - { - "fileMatch": "*/tsconfig.json", - "schema":tsconfig_schema } + ] } })