(node: { label?: string; name: string; qualified_name?: string; file_path?: string })
| 79 | * Explore and the search listed a file called "{}". |
| 80 | */ |
| 81 | export function nodeFilePath(node: { label?: string; name: string; qualified_name?: string; file_path?: string }): string | undefined { |
| 82 | if (node.file_path === '{}' && branchNodeOf({ name: node.name, label: node.label, qualifiedName: node.qualified_name })) return undefined; |
| 83 | return node.file_path; |
| 84 | } |
| 85 | |
| 86 | /** The shown name of a Galaxy scope; folders and files keep their paths. */ |
| 87 | export function scopeDisplayName(scope: GraphScope): string { |
no test coverage detected