Skip to content

Commit f5b90a4

Browse files
authored
Fix "invalid string length" (microsoft#158216)
Fixes microsoft#158204
1 parent c56dd94 commit f5b90a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export class RipgrepTextSearchEngine {
9292
rgProc.stderr!.on('data', data => {
9393
const message = data.toString();
9494
this.outputChannel.appendLine(message);
95-
stderr += message;
95+
96+
if (stderr.length + message.length < 1e6) {
97+
stderr += message;
98+
}
9699
});
97100

98101
rgProc.on('close', () => {

0 commit comments

Comments
 (0)