Skip to content

Commit

Permalink
Git/SCM - update "view" to "open" in the command titles
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru committed Jan 10, 2025
1 parent 54e4744 commit 355518a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions extensions/git/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"command.timelineCompareWithSelected": "Compare with Selected",
"command.manageUnsafeRepositories": "Manage Unsafe Repositories",
"command.openRepositoriesInParentFolders": "Open Repositories In Parent Folders",
"command.viewChanges": "View Changes",
"command.viewStagedChanges": "View Staged Changes",
"command.viewUntrackedChanges": "View Untracked Changes",
"command.viewCommit": "View Commit",
"command.viewChanges": "Open Changes",
"command.viewStagedChanges": "Open Staged Changes",
"command.viewUntrackedChanges": "Open Untracked Changes",
"command.viewCommit": "Open Commit",
"command.api.getRepositories": "Get Repositories",
"command.api.getRepositoryState": "Get Repository State",
"command.api.getRemoteSources": "Get Remote Sources",
Expand Down
4 changes: 2 additions & 2 deletions extensions/git/src/blame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class GitBlameController {
// Commands
const hash = commitInformation?.hash ?? blameInformation.hash;

markdownString.appendMarkdown(`[\`$(git-commit) ${getCommitShortHash(documentUri, hash)} \`](command:git.viewCommit?${encodeURIComponent(JSON.stringify([documentUri, hash]))} "${l10n.t('View Commit')}")`);
markdownString.appendMarkdown(`[\`$(git-commit) ${getCommitShortHash(documentUri, hash)} \`](command:git.viewCommit?${encodeURIComponent(JSON.stringify([documentUri, hash]))} "${l10n.t('Open Commit')}")`);
markdownString.appendMarkdown(' ');
markdownString.appendMarkdown(`[$(copy)](command:git.copyContentToClipboard?${encodeURIComponent(JSON.stringify(hash))} "${l10n.t('Copy Commit Hash')}")`);

Expand Down Expand Up @@ -727,7 +727,7 @@ class GitBlameStatusBarItem {
this._statusBarItem.text = `$(git-commit) ${this._controller.formatBlameInformationMessage(window.activeTextEditor.document.uri, template, blameInformation[0].blameInformation)}`;
this._statusBarItem.tooltip = await this._controller.getBlameInformationHover(window.activeTextEditor.document.uri, blameInformation[0].blameInformation);
this._statusBarItem.command = {
title: l10n.t('View Commit'),
title: l10n.t('Open Commit'),
command: 'git.viewCommit',
arguments: [window.activeTextEditor.document.uri, blameInformation[0].blameInformation.hash]
} satisfies Command;
Expand Down
2 changes: 1 addition & 1 deletion extensions/git/src/timelineProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class GitTimelineItem extends TimelineItem {
if (hash) {
this.tooltip.appendMarkdown(`---\n\n`);

this.tooltip.appendMarkdown(`[\`$(git-commit) ${getCommitShortHash(uri, hash)} \`](command:git.viewCommit?${encodeURIComponent(JSON.stringify([uri, hash]))} "${l10n.t('View Commit')}")`);
this.tooltip.appendMarkdown(`[\`$(git-commit) ${getCommitShortHash(uri, hash)} \`](command:git.viewCommit?${encodeURIComponent(JSON.stringify([uri, hash]))} "${l10n.t('Open Commit')}")`);
this.tooltip.appendMarkdown(' ');
this.tooltip.appendMarkdown(`[$(copy)](command:git.copyContentToClipboard?${encodeURIComponent(JSON.stringify(hash))} "${l10n.t('Copy Commit Hash')}")`);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class OpenScmGroupAction extends Action2 {
constructor() {
super({
id: '_workbench.openScmMultiDiffEditor',
title: localize2('viewChanges', 'View Changes'),
title: localize2('openChanges', 'Open Changes'),
f1: false
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ registerAction2(class extends Action2 {
constructor() {
super({
id: 'workbench.scm.action.graph.viewChanges',
title: localize('viewChanges', "View Changes"),
title: localize('openChanges', "Open Changes"),
f1: false,
menu: [
{
Expand Down

0 comments on commit 355518a

Please sign in to comment.