This commit is contained in:
Sandeep Somavarapu
2018-02-14 13:38:05 +01:00
parent 7fb62434ca
commit 950574c378
5 changed files with 15 additions and 4 deletions

View File

@@ -185,6 +185,7 @@ class ExtHostTreeView<T> extends Disposable {
parentHandle,
label: extensionTreeItem.label,
resourceUri: extensionTreeItem.resourceUri,
tooltip: typeof extensionTreeItem.tooltip === 'string' ? extensionTreeItem.tooltip : void 0,
command: extensionTreeItem.command ? this.commands.toInternal(extensionTreeItem.command) : void 0,
contextValue: extensionTreeItem.contextValue,
icon,

View File

@@ -1524,6 +1524,7 @@ export class TreeItem {
iconPath?: string | URI | { light: string | URI; dark: string | URI };
command?: vscode.Command;
contextValue?: string;
tooltip?: string;
constructor(label: string, collapsibleState?: vscode.TreeItemCollapsibleState)
constructor(resourceUri: URI, collapsibleState?: vscode.TreeItemCollapsibleState)