Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Convert test output newlines to \r\n (#1011)
Browse files Browse the repository at this point in the history
Test output is sent to vscode's terminal which uses \r\n to terminate
lines. Convert any line just ending with \n to \r\n so that test output
is not scrambled.
  • Loading branch information
erikced authored Jan 30, 2024
1 parent 06585e7 commit ca4f02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export class TestController {
workspace.ruby.env,
);

run.appendOutput(output, undefined, test);
run.appendOutput(output.replace(/\r?\n/g, "\r\n"), undefined, test);
run.passed(test, Date.now() - start);
} catch (err: any) {
const duration = Date.now() - start;
Expand Down

0 comments on commit ca4f02a

Please sign in to comment.