mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
eng: fix selfhost test explorer not always working (#211276)
Fixes #210878
This commit is contained in:
parent
aacda1dd2f
commit
ee0213f6fb
|
@ -111,12 +111,14 @@ export class TestOutputScanner implements vscode.Disposable {
|
|||
}
|
||||
}
|
||||
|
||||
protected readonly processData = (data: string) => {
|
||||
protected readonly processData = (data: string | Buffer) => {
|
||||
if (this.args) {
|
||||
this.outputEventEmitter.fire(`./scripts/test ${this.args.join(' ')}`);
|
||||
this.args = undefined;
|
||||
}
|
||||
|
||||
data = data.toString();
|
||||
|
||||
try {
|
||||
const parsed = JSON.parse(data.trim()) as unknown;
|
||||
if (parsed instanceof Array && parsed.length === 2 && typeof parsed[0] === 'string') {
|
||||
|
|
Loading…
Reference in a new issue