mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
Tree views: Use light icon path for dark icon if not provided
This commit is contained in:
parent
b958ec2f74
commit
e48ab0af19
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue