Przeglądaj źródła

Adds parent to DBG output for nodes

main
Eric Amodio 5 lat temu
rodzic
commit
faa8a3adf2
1 zmienionych plików z 11 dodań i 1 usunięć
  1. +11
    -1
      src/views/viewBase.ts

+ 11
- 1
src/views/viewBase.ts Wyświetl plik

@ -61,7 +61,17 @@ export abstract class ViewBase> implements TreeData
this.getTreeItem = async function(this: ViewBase<TRoot>, node: ViewNode) {
const item = await fn.apply(this, [node]);
item.tooltip = `${item.tooltip || item.label}\n\nDBG: ${node.toString()}, ${item.contextValue}`;
const parent = node.getParent();
if (parent !== undefined) {
item.tooltip = `${item.tooltip ||
item.label}\n\nDBG:\nnode: ${node.toString()}\nparent: ${parent.toString()}\ncontext: ${
item.contextValue
}`;
} else {
item.tooltip = `${item.tooltip || item.label}\n\nDBG:\nnode: ${node.toString()}\ncontext: ${
item.contextValue
}`;
}
return item;
};
}

Ładowanie…
Anuluj
Zapisz