* Normalize text for editor storage: * - Normalize line endings (\r\n and \r -> \n) * - Expand tabs to 4 spaces
(text: string)
| 1135 | * - Expand tabs to 4 spaces |
| 1136 | */ |
| 1137 | private normalizeText(text: string): string { |
| 1138 | return text.replace(/\r\n/g, "\n").replace(/\r/g, "\n").replace(/\t/g, " "); |
| 1139 | } |
| 1140 | |
| 1141 | /** |
| 1142 | * Internal text insertion at cursor. Handles single and multi-line text. |
no outgoing calls
no test coverage detected