SCM - use unicode codes in labels (#274786)

This commit is contained in:
Ladislau Szomoru
2025-11-03 16:02:24 +00:00
committed by GitHub
parent 70de2c9318
commit e3babad841
3 changed files with 7 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ function getArtifactDescription(ref: Ref, shortCommitLength: number): string {
segments.push(ref.commitDetails.message.split('\n')[0]);
}
return segments.join(' ');
return segments.join(' \u2022 ');
}
export class GitArtifactProvider implements SourceControlArtifactProvider, IDisposable {

View File

@@ -3192,7 +3192,7 @@ export class CommandCenter {
await commands.executeCommand('_workbench.openMultiDiffEditor', {
multiDiffSourceUri,
title: `${ref1DisplayId} ${ref2DisplayId}`,
title: `${ref1DisplayId} \u2194 ${ref2DisplayId}`,
resources
});
} catch (err) {
@@ -4889,7 +4889,7 @@ export class CommandCenter {
else if (item.previousRef === 'HEAD' && item.ref === '~') {
title = l10n.t('{0} (Index)', basename);
} else {
title = l10n.t('{0} ({1}) {0} ({2})', basename, item.shortPreviousRef, item.shortRef);
title = l10n.t('{0} ({1}) \u2194 {0} ({2})', basename, item.shortPreviousRef, item.shortRef);
}
return {
@@ -5006,7 +5006,7 @@ export class CommandCenter {
}
const title = l10n.t('{0} {1}', leftTitle, rightTitle);
const title = l10n.t('{0} \u2194 {1}', leftTitle, rightTitle);
await commands.executeCommand('vscode.diff', selected.ref === '' ? uri : toGitUri(uri, selected.ref), item.ref === '' ? uri : toGitUri(uri, item.ref), title);
}

View File

@@ -333,11 +333,11 @@ registerAction2(class extends Action2 {
let title: string, historyItemId: string, historyItemParentId: string | undefined;
if (historyItem.id === SCMIncomingHistoryItemId) {
title = `${historyItem.subject} - ${historyItemRef?.name} ${historyItemRemoteRef?.name}`;
title = `${historyItem.subject} - ${historyItemRef?.name} \u2194 ${historyItemRemoteRef?.name}`;
historyItemId = historyProvider!.historyItemRemoteRef.get()!.id;
historyItemParentId = historyItem.parentIds[0];
} else if (historyItem.id === SCMOutgoingHistoryItemId) {
title = `${historyItem.subject} - ${historyItemRemoteRef?.name} ${historyItemRef?.name}`;
title = `${historyItem.subject} - ${historyItemRemoteRef?.name} \u2194 ${historyItemRef?.name}`;
historyItemId = historyProvider!.historyItemRef.get()!.id;
historyItemParentId = historyItem.parentIds[0];
} else {
@@ -2013,7 +2013,7 @@ export class SCMHistoryViewPane extends ViewPane {
const originalUriTitle = `${basename(historyItemChange.originalUri.fsPath)} (${historyItemParentDisplayId})`;
const modifiedUriTitle = `${basename(historyItemChange.modifiedUri.fsPath)} (${historyItemDisplayId})`;
const title = `${originalUriTitle} ${modifiedUriTitle}`;
const title = `${originalUriTitle} \u2194 ${modifiedUriTitle}`;
await this._editorService.openEditor({
label: title,
original: { resource: historyItemChange.originalUri },