From 28c5e33e0c114d0813ae275508edca7113cbaa5f Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Wed, 3 Jul 2024 11:17:20 +0200 Subject: [PATCH] JSON: Fix validation being disabled following #13459 (#13770) The problem with #13459 was the bump to a newer JSON LS version, which requires explicitly opting into validation. Release Notes: - Fixed JSON validation being disabled by default (Preview only) --- crates/languages/src/json.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/languages/src/json.rs b/crates/languages/src/json.rs index ac869232b6c213ae67e26639e6bf488ac2d3258c..11e67c15ce9c0b6abc6032647536c2968456b8a2 100644 --- a/crates/languages/src/json.rs +++ b/crates/languages/src/json.rs @@ -95,6 +95,10 @@ impl JsonLspAdapter { "format": { "enable": true, }, + "validate": + { + "enable": true, + }, "schemas": [ { "fileMatch": ["tsconfig.json"],