提交 e48ab0af 编写于 作者: S Sandeep Somavarapu

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

上级 b958ec2f
......@@ -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,
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册