From 969808553383e4c714cb84e3286da34da427a1d4 Mon Sep 17 00:00:00 2001 From: l3ops Date: Mon, 14 Nov 2022 14:49:56 +0100 Subject: [PATCH] fix(rome_lsp): update all diagnostics after a configuration change --- crates/rome_lsp/src/server.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rome_lsp/src/server.rs b/crates/rome_lsp/src/server.rs index 6546e806187..72b6597382c 100644 --- a/crates/rome_lsp/src/server.rs +++ b/crates/rome_lsp/src/server.rs @@ -267,6 +267,7 @@ impl LanguageServer for LSPServer { if possible_rome_json.display().to_string() == CONFIG_NAME { self.session.update_configuration().await; self.session.fetch_client_configuration().await; + self.session.update_all_diagnostics().await; // for now we are only interested to the configuration file, // so it's OK to exist the loop break;