mirror of
https://github.com/Microsoft/vscode
synced 2024-10-12 06:17:18 +00:00
testing: fix label not applying to root by default
This commit is contained in:
parent
d88f3a6b6d
commit
472a308b03
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue