diff --git a/src/vs/workbench/contrib/scm/browser/scmViewlet.ts b/src/vs/workbench/contrib/scm/browser/scmViewlet.ts index a649ef4a13a06955270f10d4712ef3aab04cc531..b8db2f29662440d001d7cbb36c2e56619a66c6be 100644 --- a/src/vs/workbench/contrib/scm/browser/scmViewlet.ts +++ b/src/vs/workbench/contrib/scm/browser/scmViewlet.ts @@ -1181,6 +1181,10 @@ export class SCMViewlet extends ViewContainerViewlet implements IViewModel { this.viewsModel.setVisible(MainPanel.ID, false); } + if (repositoryCount === 1) { + this.viewsModel.setVisible(this.viewDescriptors[0].id, true); + } + toggleClass(this.el, 'empty', repositoryCount === 0); this.repositoryCount = repositoryCount; }