Skip to content

Commit

Permalink
Merge pull request #41413 from Microsoft/sandy081/40018
Browse files Browse the repository at this point in the history
Add optional id property to the tree item
  • Loading branch information
sandy081 authored Jan 16, 2018
2 parents 49c5b17 + ee287dd commit dc13183
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/vs/vscode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4971,6 +4971,13 @@ declare module 'vscode' {
*/
label?: string;

/**
* Optional id for the tree item that has to be unique across tree. The id is used to preserve the selection and expansion state of the tree item.
*
* If not provided, an id is generated using the tree item's label. **Note** that when labels change, ids will change and that selection and expansion state cannot be kept stable anymore.
*/
id?: string;

/**
* The icon path for the tree item. When `falsy`, it is derived from [resourceUri](#TreeItem.resourceUri).
*/
Expand Down

0 comments on commit dc13183

Please sign in to comment.