resourceUri

abstract var resourceUri: Uri?(source)

A Uri representing the resource associated with this item.

When set, this property is used to automatically derive several item properties if they are not explicitly provided:

  • Label: Derived from the resource's file name when label is not provided or is empty.

  • Description: Derived from the resource's path when description is not provided or is empty.

  • Icon: Derived from the current file icon theme when iconPath is set to ThemeIcon.File or ThemeIcon.Folder.

Online Documentation