mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
testing: fix label not applying to root by default
This commit is contained in:
@@ -56,8 +56,14 @@ export class ExtHostTesting implements ExtHostTestingShape {
|
||||
* Implements vscode.test.registerTestProvider
|
||||
*/
|
||||
public createTestController(controllerId: string, label: string): vscode.TestController {
|
||||
if (this.controllers.has(controllerId)) {
|
||||
throw new Error(`Attempt to insert a duplicate controller with ID "${controllerId}"`);
|
||||
}
|
||||
|
||||
const disposable = new DisposableStore();
|
||||
const collection = disposable.add(new SingleUseTestCollection(controllerId));
|
||||
collection.root.label = label;
|
||||
|
||||
const profiles = new Map<number, vscode.TestRunProfile>();
|
||||
const proxy = this.proxy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user