From ab11f8652882ffa8bb952971b42341ce51396b1c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 17 Mar 2024 11:26:00 +0800 Subject: [PATCH] src/Lsp.vala --- src/Lsp.vala | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Lsp.vala b/src/Lsp.vala index f507d1ee1..4c176bb13 100644 --- a/src/Lsp.vala +++ b/src/Lsp.vala @@ -337,7 +337,7 @@ namespace Lsp { public class DocumentSymbol : Object, Json.Serializable { private Vala.SourceReference? _source_reference; public string name { get; set; } - public string? detail { get; set; } + public string detail { get; set; default = ""; } public SymbolKind kind { get; set; } public bool deprecated { get; set; } @@ -437,8 +437,13 @@ namespace Lsp { ret += this.kind.icon(); return ret; } - } - + } + public string tooltip { + get { + return this.detail + "\nline: " + this.range.start.line.to_string(); + + } + } } -- 2.39.2