未验证 提交 dc13183c 编写于 作者: S Sandeep Somavarapu 提交者: GitHub

Merge pull request #41413 from Microsoft/sandy081/40018

Add optional id property to the tree item
......@@ -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).
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册