mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
testing: fix error if a test state is updated synchronously on a detached test run
Fixes #126186
This commit is contained in:
@@ -386,7 +386,6 @@ class TestRunQueue {
|
||||
}
|
||||
|
||||
const dto = TestRunDto.fromPublic(request);
|
||||
const task = new TestRunTask(name, dto, new Set(), this.proxy);
|
||||
this.proxy.$startedExtensionTestRun({
|
||||
debug: request.debug,
|
||||
exclude: request.exclude?.map(t => t.id) ?? [],
|
||||
@@ -394,6 +393,7 @@ class TestRunQueue {
|
||||
tests: request.tests.map(t => t.id),
|
||||
persist: persist
|
||||
});
|
||||
const task = new TestRunTask(name, dto, new Set(), this.proxy);
|
||||
task.onEnd.wait().then(() => this.proxy.$finishedExtensionTestRun(dto.id));
|
||||
return task;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user