Browse Source

Fixes double debugging info on hovers

main
Eric Amodio 3 years ago
parent
commit
f88a1860fd
1 changed files with 6 additions and 8 deletions
  1. +6
    -8
      src/views/viewBase.ts

+ 6
- 8
src/views/viewBase.ts View File

@ -129,27 +129,25 @@ export abstract class ViewBase<
}
}
const getTreeItem = this.getTreeItem;
const getTreeItemFn = this.getTreeItem;
this.getTreeItem = async function (this: ViewBase<RootNode, ViewConfig>, node: ViewNode) {
const item = await getTreeItem.apply(this, [node]);
const item = await getTreeItemFn.apply(this, [node]);
const parent = node.getParent();
if (node.resolveTreeItem != null) {
const resolveTreeItem = node.resolveTreeItem;
const resolveTreeItemFn = node.resolveTreeItem;
node.resolveTreeItem = async function (this: ViewBase<RootNode, ViewConfig>, item: TreeItem) {
const resolvedItem = await resolveTreeItem.apply(this, [item]);
const resolvedItem = await resolveTreeItemFn.apply(this, [item]);
addDebuggingInfo(resolvedItem, node, parent);
return resolvedItem;
};
return item;
} else {
addDebuggingInfo(item, node, parent);
}
addDebuggingInfo(item, node, parent);
return item;
};
}

Loading…
Cancel
Save