testing: fix welcome not initially showing

Fixes #130696
This commit is contained in:
Connor Peet 2021-08-13 11:08:10 -07:00
parent 30465d50fa
commit 031b1453c8
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -243,10 +243,7 @@ export class TestingExplorerView extends ViewPane {
this.viewModel = this.instantiationService.createInstance(TestingExplorerViewModel, listContainer, this.onDidChangeBodyVisibility);
this._register(this.viewModel.onChangeWelcomeVisibility(() => this._onDidChangeViewWelcomeState.fire()));
this._register(this.viewModel);
if (this.viewModel.welcomeExperience !== WelcomeExperience.ForWorkspace) {
this._onDidChangeViewWelcomeState.fire();
}
this._onDidChangeViewWelcomeState.fire();
}
/** @override */