diff --git a/src/commands/common.ts b/src/commands/common.ts index e6099e7..08157c2 100644 --- a/src/commands/common.ts +++ b/src/commands/common.ts @@ -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', diff --git a/src/commands/openBranchOnRemote.ts b/src/commands/openBranchOnRemote.ts index d92e8df..ee19c03 100644 --- a/src/commands/openBranchOnRemote.ts +++ b/src/commands/openBranchOnRemote.ts @@ -60,7 +60,7 @@ export class OpenBranchOnRemoteCommand extends ActiveEditorCommand { args.branch = pick.ref; } - void (await executeCommand(Commands.OpenOnRemote, { + void (await executeCommand(Commands.OpenInRemote, { resource: { type: RemoteResourceType.Branch, branch: args.branch || 'HEAD', diff --git a/src/commands/openBranchesOnRemote.ts b/src/commands/openBranchesOnRemote.ts index 3cae92c..44736c7 100644 --- a/src/commands/openBranchesOnRemote.ts +++ b/src/commands/openBranchesOnRemote.ts @@ -43,7 +43,7 @@ export class OpenBranchesOnRemoteCommand extends ActiveEditorCommand { if (!repoPath) return; try { - void (await executeCommand(Commands.OpenOnRemote, { + void (await executeCommand(Commands.OpenInRemote, { resource: { type: RemoteResourceType.Branches, }, diff --git a/src/commands/openCommitOnRemote.ts b/src/commands/openCommitOnRemote.ts index 3e81913..5c29bf4 100644 --- a/src/commands/openCommitOnRemote.ts +++ b/src/commands/openCommitOnRemote.ts @@ -83,7 +83,7 @@ export class OpenCommitOnRemoteCommand extends ActiveEditorCommand { args.sha = commit.sha; } - void (await executeCommand(Commands.OpenOnRemote, { + void (await executeCommand(Commands.OpenInRemote, { resource: { type: RemoteResourceType.Commit, sha: args.sha, diff --git a/src/commands/openFileOnRemote.ts b/src/commands/openFileOnRemote.ts index a85ee9b..e1bb31a 100644 --- a/src/commands/openFileOnRemote.ts +++ b/src/commands/openFileOnRemote.ts @@ -102,7 +102,7 @@ export class OpenFileOnRemoteCommand extends ActiveEditorCommand { } } - void (await executeCommand(Commands.OpenOnRemote, { + void (await executeCommand(Commands.OpenInRemote, { resource: { type: sha == null ? RemoteResourceType.File : RemoteResourceType.Revision, branch: args.branch ?? 'HEAD', diff --git a/src/commands/openOnRemote.ts b/src/commands/openOnRemote.ts index 664820e..ebd1bd0 100644 --- a/src/commands/openOnRemote.ts +++ b/src/commands/openOnRemote.ts @@ -27,7 +27,7 @@ export type OpenOnRemoteCommandArgs = @command() export class OpenOnRemoteCommand extends Command { constructor() { - super(Commands.OpenOnRemote); + super(Commands.OpenInRemote); } async execute(args?: OpenOnRemoteCommandArgs) { diff --git a/src/commands/openRepoOnRemote.ts b/src/commands/openRepoOnRemote.ts index 21134be..0de0185 100644 --- a/src/commands/openRepoOnRemote.ts +++ b/src/commands/openRepoOnRemote.ts @@ -43,7 +43,7 @@ export class OpenRepoOnRemoteCommand extends ActiveEditorCommand { if (!repoPath) return; try { - void (await executeCommand(Commands.OpenOnRemote, { + void (await executeCommand(Commands.OpenInRemote, { resource: { type: RemoteResourceType.Repo, }, diff --git a/src/quickpicks/remoteProviderPicker.ts b/src/quickpicks/remoteProviderPicker.ts index 8634af9..4d69963 100644 --- a/src/quickpicks/remoteProviderPicker.ts +++ b/src/quickpicks/remoteProviderPicker.ts @@ -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], ); }