From 98d7716cc5c1c077843efe56c09a299b8673d558 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 5 Dec 2018 01:36:13 -0500 Subject: [PATCH] Fixes an issue where close repo command didn't work --- CHANGELOG.md | 1 + src/views/nodes/repositoriesNode.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d83442b..796f734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p ### Fixed - Fixes [#528](https://github.com/eamodio/vscode-gitlens/issues/528) — Remotes not showing, being filtred on domain and file, but not complete path +- Fixes an issue where _Close Repository_ command didn't work ## [9.0.1] - 2018-12-02 diff --git a/src/views/nodes/repositoriesNode.ts b/src/views/nodes/repositoriesNode.ts index 8ba1e36..dd754d1 100644 --- a/src/views/nodes/repositoriesNode.ts +++ b/src/views/nodes/repositoriesNode.ts @@ -72,6 +72,8 @@ export class RepositoriesNode extends SubscribeableViewNode { const children = []; for (const repo of repositories) { + if (repo.closed) continue; + const normalizedPath = repo.normalizedPath; const child = (this._children as RepositoryNode[]).find(c => c.repo.normalizedPath === normalizedPath); if (child !== undefined) {