src/Lsp.vala
authorAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 10:24:08 +0000 (18:24 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 10:24:08 +0000 (18:24 +0800)
src/Lsp.vala

index 4d63b71..815438b 100644 (file)
@@ -340,16 +340,8 @@ namespace Lsp {
         public string? detail { get; set; }
         public SymbolKind kind { get; set; }
         public bool deprecated { get; set; }
-        private Range? _initial_range;
-       /* public Range range {
-            owned get {
-                if (_initial_range == null)
-                    _initial_range = new Range.from_sourceref (children.first ()._source_reference);
-                
-                return children.fold<Range> ((child, current_range) => current_range.union (child.range), _initial_range);
-            }
-        }
-        */
+
+       public Range range { get; set; } 
         public Range selectionRange { get; set; }
         public GLib.ListStore children { get; private set; default = new GLib.ListStore(typeof(DocumentSymbol)); }
         public string? parent_name;