Skip to content

Commit 587d463

Browse files
authored
SCM - add missing filter clause to visible repositories (microsoft#286431) (microsoft#286435)
1 parent 84ce6e1 commit 587d463

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/workbench/contrib/scm/browser/scmViewService.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,14 @@ export class SCMViewService implements ISCMViewService {
134134
// In order to match the legacy behaviour, when the repositories are sorted by discovery time,
135135
// the visible repositories are sorted by the selection index instead of the discovery time.
136136
if (this._repositoriesSortKey === ISCMRepositorySortKey.DiscoveryTime) {
137-
return this._repositories.filter(r => r.selectionIndex !== -1)
137+
return this._repositories
138+
.filter(r => r.repository.provider.isHidden !== true && r.selectionIndex !== -1)
138139
.sort((r1, r2) => r1.selectionIndex - r2.selectionIndex)
139140
.map(r => r.repository);
140141
}
141142

142143
return this._repositories
143-
.filter(r => r.selectionIndex !== -1)
144+
.filter(r => r.repository.provider.isHidden !== true && r.selectionIndex !== -1)
144145
.map(r => r.repository);
145146
}
146147

0 commit comments

Comments
 (0)