(path: string, state: CoverageState, reason = '')
| 114 | * heutige Server-Flaeche und nicht ueber die Datei. |
| 115 | */ |
| 116 | export function readerUnavailableNote(path: string, state: CoverageState, reason = ''): string { |
| 117 | const trimmed = reason.trim(); |
| 118 | const why = |
| 119 | state === 'skipped' |
| 120 | ? trimmed.length > 0 |
| 121 | ? `the indexer skipped it (${trimmed})` |
| 122 | : 'the indexer skipped it and named no reason' |
| 123 | : state === 'ignored' |
| 124 | ? trimmed.length > 0 |
| 125 | ? `the coverage store lists it as ignored (${trimmed})` |
| 126 | : 'the coverage store lists it as ignored' |
| 127 | : trimmed.length > 0 |
| 128 | ? `it is excluded by design (${trimmed})` |
| 129 | : 'it is excluded by design and the server named no rule'; |
| 130 | return ( |
| 131 | `${path} has no content here: ${why}, so the index holds no module node for it. ` |
| 132 | + 'This server delivers file content only through get_code_snippet on an indexed symbol, ' |
| 133 | + 'so there is nothing to read until a file endpoint exists (Upstream-Ask 1). ' |
| 134 | + 'The file itself is on disk; this surface simply cannot show it.' |
| 135 | ); |
| 136 | } |
| 137 | |
| 138 | /** Die Notiz ueber dem Editor, wenn nur Teile der Datei im Graphen stehen. */ |
| 139 | export function partialFileNote(path: string, reason = ''): string { |
no outgoing calls
no test coverage detected