mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Git - fix issue with remote reference label rendering (#278031)
This commit is contained in:
@@ -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) : [];
|
||||
|
||||
Reference in New Issue
Block a user