(item: SidebarSelectionItem)
| 279 | } |
| 280 | |
| 281 | function selectionKeyForItem(item: SidebarSelectionItem): string { |
| 282 | return item.kind === "note" |
| 283 | ? noteSelectionKey(item.path) |
| 284 | : folderSelectionKey(item.folder, item.subpath); |
| 285 | } |
| 286 | |
| 287 | function parseSelectionKey(key: string): SidebarSelectionItem | null { |
| 288 | if (key.startsWith("note:")) { |
no test coverage detected