Skip to content

Commit 98d7716

Browse files
committed
Fixes an issue where close repo command didn't work
1 parent ea92ba9 commit 98d7716

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1717
### Fixed
1818

1919
- Fixes [#528](https://github.com/eamodio/vscode-gitlens/issues/528) — Remotes not showing, being filtred on domain and file, but not complete path
20+
- Fixes an issue where _Close Repository_ command didn't work
2021

2122
## [9.0.1] - 2018-12-02
2223

src/views/nodes/repositoriesNode.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export class RepositoriesNode extends SubscribeableViewNode<RepositoriesView> {
7272

7373
const children = [];
7474
for (const repo of repositories) {
75+
if (repo.closed) continue;
76+
7577
const normalizedPath = repo.normalizedPath;
7678
const child = (this._children as RepositoryNode[]).find(c => c.repo.normalizedPath === normalizedPath);
7779
if (child !== undefined) {

0 commit comments

Comments
 (0)