Skip to content

Commit ee0213f

Browse files
authored
eng: fix selfhost test explorer not always working (microsoft#211276)
Fixes microsoft#210878
1 parent aacda1d commit ee0213f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vscode/extensions/vscode-selfhost-test-provider/src/testOutputScanner.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,14 @@ export class TestOutputScanner implements vscode.Disposable {
111111
}
112112
}
113113

114-
protected readonly processData = (data: string) => {
114+
protected readonly processData = (data: string | Buffer) => {
115115
if (this.args) {
116116
this.outputEventEmitter.fire(`./scripts/test ${this.args.join(' ')}`);
117117
this.args = undefined;
118118
}
119119

120+
data = data.toString();
121+
120122
try {
121123
const parsed = JSON.parse(data.trim()) as unknown;
122124
if (parsed instanceof Array && parsed.length === 2 && typeof parsed[0] === 'string') {

0 commit comments

Comments
 (0)