" expand.set_hide_expander( sym.children.get_n_items() < 1);",
" \texpand.set_list_row(lr);",
" \t",
+ " \t// default is to expand",
+ " \tswitch (sym.kind) {",
+ " \t\tcase Lsp.SymbolKind.Enum: ",
+ " \t\t",
+ " \t\t\texpand.list_row.expanded = false;",
+ " \t\t\tbreak;",
+ "\t\tdefault:",
+ "\t\t\tbreak;",
+ "\t}",
+ " \t",
+ " \t",
" \tsym.bind_property(\"symbol_icon\",",
" img, \"icon_name\",",
" GLib.BindingFlags.SYNC_CREATE);",
expand.set_hide_expander( sym.children.get_n_items() < 1);
expand.set_list_row(lr);
+ // default is to expand
+ switch (sym.kind) {
+ case Lsp.SymbolKind.Enum:
+
+ expand.list_row.expanded = false;
+ break;
+ default:
+ break;
+ }
+
+
sym.bind_property("symbol_icon",
img, "icon_name",
GLib.BindingFlags.SYNC_CREATE);