Skip to content

Commit ae43cd5

Browse files
author
Eric Wheeler
committed
lang: translate Russian comments to English in vscode-lm.ts
Translated all Russian comments in the cleanTerminalOutput method to their English equivalents while preserving the code's functionality. This improves code readability for English-speaking developers. Signed-off-by: Eric Wheeler <[email protected]>
1 parent 270fd88 commit ae43cd5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/api/providers/vscode-lm.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -289,36 +289,36 @@ export class VsCodeLmHandler extends BaseProvider implements SingleCompletionHan
289289

290290
return (
291291
text
292-
// Нормализуем переносы строк
292+
// Normalize line breaks
293293
.replace(/\r\n/g, "\n")
294294
.replace(/\r/g, "\n")
295295

296-
// Удаляем ANSI escape sequences
297-
.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, "") // Полный набор ANSI sequences
296+
// Remove ANSI escape sequences
297+
.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, "") // Complete set of ANSI sequences
298298
.replace(/\x9B[0-?]*[ -/]*[@-~]/g, "") // CSI sequences
299299

300-
// Удаляем последовательности установки заголовка терминала и прочие OSC sequences
300+
// Remove terminal title setting sequences and other OSC sequences
301301
.replace(/\x1B\][0-9;]*(?:\x07|\x1B\\)/g, "")
302302

303-
// Удаляем управляющие символы
303+
// Remove control characters
304304
.replace(/[\x00-\x09\x0B-\x0C\x0E-\x1F\x7F]/g, "")
305305

306-
// Удаляем escape-последовательности VS Code
306+
// Remove VS Code escape sequences
307307
.replace(/\x1B[PD].*?\x1B\\/g, "") // DCS sequences
308308
.replace(/\x1B_.*?\x1B\\/g, "") // APC sequences
309309
.replace(/\x1B\^.*?\x1B\\/g, "") // PM sequences
310310
.replace(/\x1B\[[\d;]*[HfABCDEFGJKST]/g, "") // Cursor movement and clear screen
311311

312-
// Удаляем пути Windows и служебную информацию
312+
// Remove Windows paths and service information
313313
.replace(/^(?:PS )?[A-Z]:\\[^\n]*$/gm, "")
314314
.replace(/^;?Cwd=.*$/gm, "")
315315

316-
// Очищаем экранированные последовательности
316+
// Clean escaped sequences
317317
.replace(/\\x[0-9a-fA-F]{2}/g, "")
318318
.replace(/\\u[0-9a-fA-F]{4}/g, "")
319319

320-
// Финальная очистка
321-
.replace(/\n{3,}/g, "\n\n") // Убираем множественные пустые строки
320+
// Final cleanup
321+
.replace(/\n{3,}/g, "\n\n") // Remove multiple empty lines
322322
.trim()
323323
)
324324
}

0 commit comments

Comments
 (0)