"\t\t_this.navigation_holder.el.show();",
"\t\t_this.paned.el.position = ",
"\t\t\t_this.paned.el.get_width() - 200;",
- "\t}",
+ "\t} ",
"\t//_this.navliststore.el.remove_all();",
"\t",
"\t",
"\tforeach(var sym in syms) {",
"\t\tls.append(sym);",
"\t}",
+ "\t// if syms updated is empty, but we already have one..",
+ "\tif (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items < 1) {",
+ "\t\treturn;",
+ "\t}",
"\tLsp.DocumentSymbol.copyList(ls, _this.navliststore.el);",
"\t//_this.navliststore.el.append(sym);",
"\tthis.last_selected_line = -1;",
_this.navigation_holder.el.show();
_this.paned.el.position =
_this.paned.el.get_width() - 200;
- }
+ }
//_this.navliststore.el.remove_all();
foreach(var sym in syms) {
ls.append(sym);
}
+ // if syms updated is empty, but we already have one..
+ if (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items < 1) {
+ return;
+ }
Lsp.DocumentSymbol.copyList(ls, _this.navliststore.el);
//_this.navliststore.el.append(sym);
this.last_selected_line = -1;