mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 09:38:38 +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) {
|
||||
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') {
|
||||
|
||||
Reference in New Issue
Block a user