(target: EntryTarget)
| 64 | * that nothing on screen was stepped through to reach. |
| 65 | */ |
| 66 | export function openEntryTarget(target: EntryTarget): void { |
| 67 | if (!target) return; |
| 68 | if (target.type === 'file') { |
| 69 | navigate(fileHref(target.path)); |
| 70 | return; |
| 71 | } |
| 72 | walkTo({ id: target.id, name: target.name, kind: target.kind }, 'start'); |
| 73 | } |