From 3b4cdbcedc74eada2cec764c67b9cd5c13ffdc18 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Fri, 12 Jan 2018 09:07:50 +0100 Subject: [PATCH] code review comments --- src/vs/vscode.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index 29cf9485877..fc880c2e648 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -4963,19 +4963,22 @@ declare module 'vscode' { export class TreeItem { /** - * A human-readable string describing this item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri). + * A human-readable string describing this item. When `falsy`, it is derived from [uri](#TreeItem.uri). */ label?: string; /** - * The icon path for the tree item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri). + * The icon path for the tree item. When `falsy`, it is derived from [uri](#TreeItem.uri). */ iconPath?: string | Uri | { light: string | Uri; dark: string | Uri }; /** * The [uri](#Uri) of the resource representing this item. + * + * Will be used to derive the [label](#TreeItem.label), when it is not provided. + * Will be used to derive the icon from current file icon theme, when [iconPath](#TreeItem.iconPath) is not provided. */ - resourceUri?: Uri; + uri?: Uri; /** * The [command](#Command) which should be run when the tree item is selected. -- GitLab