(lastLine: number, fileLastLine: number | undefined, cap: number | undefined)
| 154 | * bevor er einen Schluss daraus zieht, dass dort nichts steht. |
| 155 | */ |
| 156 | export function truncationNoteFor(lastLine: number, fileLastLine: number | undefined, cap: number | undefined): string { |
| 157 | const capPart = cap === undefined |
| 158 | ? 'server snippet cap' |
| 159 | : `server snippet cap of ${cap} lines`; |
| 160 | if (fileLastLine === undefined) { |
| 161 | return `lines after ${lastLine} not loaded: ${capPart} (get_code_snippet). The index did not record the file length.`; |
| 162 | } |
| 163 | return `lines ${lastLine + 1}-${fileLastLine} not loaded: ${capPart} (get_code_snippet). The window arguments are ignored by this server, so there is nothing to load them with.`; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * Eine Datei laden: Namen ableiten, gegen den Graphen halten, Quelltext holen, |
no outgoing calls
no test coverage detected