mirror of
https://github.com/Microsoft/vscode
synced 2024-10-31 07:52:49 +00:00
comment
This commit is contained in:
parent
de6116b3ea
commit
e2b79d3c9d
1 changed files with 4 additions and 0 deletions
|
@ -364,6 +364,10 @@ export interface IDataSource {
|
|||
/**
|
||||
* Returns the unique identifier of the given element.
|
||||
* No more than one element may use a given identifier.
|
||||
*
|
||||
* You should not attempt to "move" an element to a different
|
||||
* parent by keeping its ID. The idea here is to have tree location
|
||||
* related IDs (eg. full file path, in the Explorer example).
|
||||
*/
|
||||
getId(tree: ITree, element: any): string;
|
||||
|
||||
|
|
Loading…
Reference in a new issue