Skip to content

Commit

Permalink
SCM - fix issue with incoming/outgoing separator (#198413)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored Nov 16, 2023
1 parent 510f5c2 commit 0cb29d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vs/workbench/contrib/scm/browser/scmViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3049,8 +3049,9 @@ class SCMTreeDataSource implements IAsyncDataSource<ISCMViewService, TreeElement

// History item groups
const historyItemGroups = await this.getHistoryItemGroups(inputOrElement);
if (historyItemGroups.some(h => h.count ?? 0 > 0)) {
// Separator

// Incoming/Outgoing Separator
if (hasSomeChanges && historyItemGroups.length > 0) {
children.push({
label: localize('syncSeparatorHeader', "Incoming/Outgoing"),
repository: inputOrElement,
Expand Down

0 comments on commit 0cb29d6

Please sign in to comment.