From 8d52ab850daf63dff4c5f3ecce963c2447ca9707 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 12 Mar 2019 17:02:57 +0100 Subject: [PATCH] fixes #70228 --- src/vs/workbench/contrib/scm/browser/scmViewlet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/scm/browser/scmViewlet.ts b/src/vs/workbench/contrib/scm/browser/scmViewlet.ts index d980d8c0180..2284547be53 100644 --- a/src/vs/workbench/contrib/scm/browser/scmViewlet.ts +++ b/src/vs/workbench/contrib/scm/browser/scmViewlet.ts @@ -1185,7 +1185,7 @@ export class SCMViewlet extends ViewContainerViewlet implements IViewModel { } focus(): void { - if (this.repositoryCount) { + if (this.repositoryCount === 0) { this.message.focus(); } else { const repository = this.visibleRepositories[0]; -- GitLab