Tree views: Use light icon path for dark icon if not provided

This commit is contained in:
Sandeep Somavarapu 2017-05-22 11:57:18 +02:00
parent b958ec2f74
commit e48ab0af19

View file

@ -149,13 +149,14 @@ class ExtHostTreeView<T> extends Disposable {
}
private massageTreeItem(extensionTreeItem: vscode.TreeItem): TreeItem {
const icon = this.getLightIconPath(extensionTreeItem);
return {
handle: ++this._itemHandlePool,
label: extensionTreeItem.label,
commandId: extensionTreeItem.command ? extensionTreeItem.command.command : void 0,
contextValue: extensionTreeItem.contextValue,
icon: this.getLightIconPath(extensionTreeItem),
iconDark: this.getDarkIconPath(extensionTreeItem),
icon,
iconDark: this.getDarkIconPath(extensionTreeItem) || icon,
collapsibleState: extensionTreeItem.collapsibleState,
};
}