[gnome-builder] editor: use diagnostic marked kind in hover content



commit 5052119f9d9c688f4ba034ef30f375e66d3457d3
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 7 14:42:50 2021 -0800

    editor: use diagnostic marked kind in hover content

 src/plugins/editor/gbp-editor-hover-provider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/editor/gbp-editor-hover-provider.c b/src/plugins/editor/gbp-editor-hover-provider.c
index e979dae8b..5db9e6e25 100644
--- a/src/plugins/editor/gbp-editor-hover-provider.c
+++ b/src/plugins/editor/gbp-editor-hover-provider.c
@@ -80,7 +80,7 @@ gbp_editor_hover_provider_hover_async (IdeHoverProvider    *provider,
 
               content = ide_marked_content_new_from_data (text,
                                                           strlen (text),
-                                                          IDE_MARKED_KIND_PLAINTEXT);
+                                                          ide_diagnostic_get_marked_kind (diag));
               ide_hover_context_add_content (context,
                                              DIAGNOSTICS_HOVER_PRIORITY,
                                              _("Diagnostics"),


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