src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 09:16:43 +0000 (17:16 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 16 Mar 2024 09:16:43 +0000 (17:16 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 23c6747..cdb933f 100644 (file)
          "xtype" : "ColumnView",
          "| void show" : [
           "(Gee.ArrayList<Lsp.DocumentSymbol> syms) {",
-          "\tthis.navigationwindow.el.show();",
+          "\t_this.navigationwindow.el.show();",
+          "\t_this.navliststore.el.remove_all();",
+          "\tforeach(var sym in syms) {",
+          "\t\t_this.navliststore.el.append(sym);",
+          "\t}",
+          "\t",
           "",
           "}"
          ]
index 394097f..1df864a 100644 (file)
@@ -1778,7 +1778,12 @@ public class Editor : Object
 
                // user defined functions
                public void show (Gee.ArrayList<Lsp.DocumentSymbol> syms) {
-                       this.navigationwindow.el.show();
+                       _this.navigationwindow.el.show();
+                       _this.navliststore.el.remove_all();
+                       foreach(var sym in syms) {
+                               _this.navliststore.el.append(sym);
+                       }
+                       
                
                }
        }