Browse Source

Reverts incorrect rename (keep matching cmd names)

main
Eric Amodio 4 years ago
parent
commit
aef9972a02
8 changed files with 9 additions and 9 deletions
  1. +1
    -1
      src/commands/common.ts
  2. +1
    -1
      src/commands/openBranchOnRemote.ts
  3. +1
    -1
      src/commands/openBranchesOnRemote.ts
  4. +1
    -1
      src/commands/openCommitOnRemote.ts
  5. +1
    -1
      src/commands/openFileOnRemote.ts
  6. +1
    -1
      src/commands/openOnRemote.ts
  7. +1
    -1
      src/commands/openRepoOnRemote.ts
  8. +2
    -2
      src/quickpicks/remoteProviderPicker.ts

+ 1
- 1
src/commands/common.ts View File

@ -62,7 +62,7 @@ export enum Commands {
OpenFileInRemote = 'gitlens.openFileInRemote',
OpenFileAtRevision = 'gitlens.openFileRevision',
OpenFileAtRevisionFrom = 'gitlens.openFileRevisionFrom',
OpenOnRemote = 'gitlens.openInRemote',
OpenInRemote = 'gitlens.openInRemote',
OpenRepoInRemote = 'gitlens.openRepoInRemote',
OpenRevisionFile = 'gitlens.openRevisionFile',
OpenWorkingFile = 'gitlens.openWorkingFile',

+ 1
- 1
src/commands/openBranchOnRemote.ts View File

@ -60,7 +60,7 @@ export class OpenBranchOnRemoteCommand extends ActiveEditorCommand {
args.branch = pick.ref;
}
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenInRemote, {
resource: {
type: RemoteResourceType.Branch,
branch: args.branch || 'HEAD',

+ 1
- 1
src/commands/openBranchesOnRemote.ts View File

@ -43,7 +43,7 @@ export class OpenBranchesOnRemoteCommand extends ActiveEditorCommand {
if (!repoPath) return;
try {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenInRemote, {
resource: {
type: RemoteResourceType.Branches,
},

+ 1
- 1
src/commands/openCommitOnRemote.ts View File

@ -83,7 +83,7 @@ export class OpenCommitOnRemoteCommand extends ActiveEditorCommand {
args.sha = commit.sha;
}
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenInRemote, {
resource: {
type: RemoteResourceType.Commit,
sha: args.sha,

+ 1
- 1
src/commands/openFileOnRemote.ts View File

@ -102,7 +102,7 @@ export class OpenFileOnRemoteCommand extends ActiveEditorCommand {
}
}
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenInRemote, {
resource: {
type: sha == null ? RemoteResourceType.File : RemoteResourceType.Revision,
branch: args.branch ?? 'HEAD',

+ 1
- 1
src/commands/openOnRemote.ts View File

@ -27,7 +27,7 @@ export type OpenOnRemoteCommandArgs =
@command()
export class OpenOnRemoteCommand extends Command {
constructor() {
super(Commands.OpenOnRemote);
super(Commands.OpenInRemote);
}
async execute(args?: OpenOnRemoteCommandArgs) {

+ 1
- 1
src/commands/openRepoOnRemote.ts View File

@ -43,7 +43,7 @@ export class OpenRepoOnRemoteCommand extends ActiveEditorCommand {
if (!repoPath) return;
try {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenOnRemote, {
void (await executeCommand<OpenOnRemoteCommandArgs>(Commands.OpenInRemote, {
resource: {
type: RemoteResourceType.Repo,
},

+ 2
- 2
src/quickpicks/remoteProviderPicker.ts View File

@ -37,7 +37,7 @@ export class CopyRemoteResourceCommandQuickPickItem extends CommandQuickPickItem
`$(clippy) Copy ${providers?.length ? providers[0].name : 'Remote'} ${getNameFromRemoteResource(
resource,
)} Url${providers?.length === 1 ? '' : GlyphChars.Ellipsis}`,
Commands.OpenOnRemote,
Commands.OpenInRemote,
[commandArgs],
);
}
@ -62,7 +62,7 @@ export class OpenRemoteResourceCommandQuickPickItem extends CommandQuickPickItem
? providers[0].name
: `${providers?.length ? providers[0].name : 'Remote'}${GlyphChars.Ellipsis}`
}`,
Commands.OpenOnRemote,
Commands.OpenInRemote,
[commandArgs],
);
}

Loading…
Cancel
Save