We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e119f0a commit 1c4fa66Copy full SHA for 1c4fa66
crates/ark/src/lsp/state_handlers.rs
@@ -283,6 +283,9 @@ async fn update_config(
283
client: &tower_lsp::Client,
284
state: &mut WorldState,
285
) -> anyhow::Result<()> {
286
+ // Keep track of existing config to detect whether it was changed
287
+ let diagnostics_config = state.config.diagnostics.clone();
288
+
289
// Build the configuration request for global and document settings
290
let mut items: Vec<_> = vec![];
291
@@ -346,6 +349,11 @@ async fn update_config(
346
349
}
347
350
348
351
352
+ // Refresh diagnostics if the configuration changed
353
+ if state.config.diagnostics != diagnostics_config {
354
+ lsp::spawn_diagnostics_refresh_all(state.clone());
355
+ }
356
357
Ok(())
358
359
0 commit comments