mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
SCM - use unicode codes in labels (#274786)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user