mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
eng: fix selfhost test explorer not always working (#211276)
Fixes #210878
This commit is contained in:
@@ -111,12 +111,14 @@ export class TestOutputScanner implements vscode.Disposable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected readonly processData = (data: string) => {
|
protected readonly processData = (data: string | Buffer) => {
|
||||||
if (this.args) {
|
if (this.args) {
|
||||||
this.outputEventEmitter.fire(`./scripts/test ${this.args.join(' ')}`);
|
this.outputEventEmitter.fire(`./scripts/test ${this.args.join(' ')}`);
|
||||||
this.args = undefined;
|
this.args = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data = data.toString();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const parsed = JSON.parse(data.trim()) as unknown;
|
const parsed = JSON.parse(data.trim()) as unknown;
|
||||||
if (parsed instanceof Array && parsed.length === 2 && typeof parsed[0] === 'string') {
|
if (parsed instanceof Array && parsed.length === 2 && typeof parsed[0] === 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user