src/Lsp.vala
authorAlan Knowles <alan@roojs.com>
Sun, 17 Mar 2024 03:28:58 +0000 (11:28 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 17 Mar 2024 03:28:58 +0000 (11:28 +0800)
src/Lsp.vala

index 70670b6..12309f0 100644 (file)
@@ -440,7 +440,8 @@ namespace Lsp {
                }
                public string tooltip {
                        owned get {
-                                return this.detail + "\nline: " + this.range.start.line.to_string();
+                               var detail = this.detail == "" ? (this.kind.to_string() + ": " + this.name : this.detail;
+                                return detail + "\nline: " + this.range.start.line.to_string();
                                
                        }
                }