SCM - fix issue with incoming/outgoing separator (#198413)

This commit is contained in:
Ladislau Szomoru
2023-11-16 13:05:25 +01:00
committed by GitHub
parent 510f5c23be
commit 0cb29d6dbd
@@ -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,