[gnome-builder] rust-analyzer: allow diagnostics to have markdown



commit a2d93d3a59d7cf0aafb890fa3ac2c46fe560bd55
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 7 14:53:53 2021 -0800

    rust-analyzer: allow diagnostics to have markdown
    
    Fixes #1578

 src/plugins/rust-analyzer/rust-analyzer-service.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-service.c 
b/src/plugins/rust-analyzer/rust-analyzer-service.c
index f6c16e2b6..118a8c5f7 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-service.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-service.c
@@ -172,6 +172,10 @@ rust_analyzer_service_supervisor_spawned_cb (RustAnalyzerService     *self,
 
   self->client = ide_lsp_client_new (io_stream);
 
+  g_object_set (self->client,
+                "use-markdown-in-diagnostics", TRUE,
+                NULL);
+
   g_signal_connect_object (self->client,
                            "load-configuration",
                            G_CALLBACK (rust_analyzer_service_lsp_load_configuration_cb),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]