"(JsRender.JsRender file, JsRender.Node? node, JsRender.NodeProp? prop)",
"{",
" this.reset();",
+ " if (this.file != null) {",
+ " \tthis.file.navigation_tree_updated.disconnect(",
+ " \t\t_this.navigation.show",
+ " \t);",
+ " }",
" this.file = file; ",
- " ",
+ " this.file.navigation_tree_updated.connect(",
+ "\t\t_this.navigation.show",
+ "\t);",
" if (file.xtype != \"PlainFile\") {",
" \tthis.prop = prop;",
" this.node = node;",
" this.updateErrorMarks();",
" this.close_btn.el.hide();",
" var ls = file.getLanguageServer();",
- " ls.documentSymbols.begin(file, (a,o) => {",
- " \t_this.navigation.show(ls.documentSymbols.end(o)); ",
+ " ls.queueDocumentSymbols(file);",
+ " ////ls.documentSymbols.begin(file, (a,o) => {",
+ " //\t_this.navigation.show(ls.documentSymbols.end(o)); ",
" });",
" //documentSymbols",
" ",
public void show (JsRender.JsRender file, JsRender.Node? node, JsRender.NodeProp? prop)
{
this.reset();
+ if (this.file != null) {
+ this.file.navigation_tree_updated.disconnect(
+ _this.navigation.show
+ );
+ }
this.file = file;
-
+ this.file.navigation_tree_updated.connect(
+ _this.navigation.show
+ );
if (file.xtype != "PlainFile") {
this.prop = prop;
this.node = node;
this.updateErrorMarks();
this.close_btn.el.hide();
var ls = file.getLanguageServer();
- ls.documentSymbols.begin(file, (a,o) => {
- _this.navigation.show(ls.documentSymbols.end(o));
+ ls.queueDocumentSymbols(file);
+ ////ls.documentSymbols.begin(file, (a,o) => {
+ // _this.navigation.show(ls.documentSymbols.end(o));
});
//documentSymbols