Git - fix issue with remote reference label rendering (#278031)

This commit is contained in:
Ladislau Szomoru
2025-11-18 09:34:42 +00:00
committed by GitHub
parent 8f1ea102fe
commit c7a1e26b9f
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -524,7 +524,9 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
revision: commit.hash,
category: l10n.t('remote branches'),
icon: new ThemeIcon('cloud'),
backgroundColor: `--vscode-scmGraph-historyItemRemoteRefColor`
backgroundColor: ref === this.currentHistoryItemRemoteRef?.id
? `--vscode-scmGraph-historyItemRemoteRefColor`
: undefined
});
break;
case ref.startsWith('tag: refs/tags/'):
@@ -505,7 +505,7 @@ class HistoryItemRenderer implements ICompressibleTreeRenderer<SCMHistoryItemVie
templateData.elementDisposables.add(autorun(reader => {
const labelConfig = this._badgesConfig.read(reader);
templateData.labelContainer.textContent = '';
templateData.labelContainer.replaceChildren();
const references = historyItem.references ?
historyItem.references.slice(0) : [];