* The module a call lands in, as a reader would name it. * * The last two segments of the recorded path, which is enough to tell * `util/validate.ts` from `repo/validate.ts` and short enough to read in a * column. The whole recorded path is on the row's detail, so nothing is hidden, * only fold
(uri: string)
| 1021 | * only folded. |
| 1022 | */ |
| 1023 | function moduleLabel(uri: string): string { |
| 1024 | const path = uri.split('?')[0].split('#')[0]; |
| 1025 | const segments = path.split('/').filter((part) => part.length > 0); |
| 1026 | return segments.slice(-2).join('/') || (displayFile(uri) ?? uri); |
| 1027 | } |
| 1028 | |
| 1029 | /** |
| 1030 | * What this symbol sits on: one row per module, with how many call sites reach |
no test coverage detected