diff --git a/package.json b/package.json index 4f70f24..4cd7f62 100644 --- a/package.json +++ b/package.json @@ -3391,12 +3391,6 @@ } }, { - "command": "gitlens.views.openFileRevisionInRemote", - "title": "Open File at Revision on Remote", - "category": "GitLens", - "icon": "$(globe)" - }, - { "command": "gitlens.views.openChangedFiles", "title": "Open Files", "category": "GitLens" @@ -4826,10 +4820,6 @@ "when": "false" }, { - "command": "gitlens.views.openFileRevisionInRemote", - "when": "false" - }, - { "command": "gitlens.views.openChangedFiles", "when": "false" }, @@ -6722,11 +6712,6 @@ "alt": "gitlens.copyRemoteFileUrlToClipboard" }, { - "command": "gitlens.views.openFileRevisionInRemote", - "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes", - "group": "2_gitlens_quickopen_2@2" - }, - { "command": "gitlens.openCommitInRemote", "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes", "group": "2_gitlens_quickopen_2@3", diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index 41ddd5e..5d15a71 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -138,7 +138,6 @@ export class ViewCommands { commands.registerCommand('gitlens.views.openChangesWithWorking', this.openChangesWithWorking, this); commands.registerCommand('gitlens.views.openFile', this.openFile, this); commands.registerCommand('gitlens.views.openFileRevision', this.openRevision, this); - commands.registerCommand('gitlens.views.openFileRevisionInRemote', this.openRevisionOnRemote, this); commands.registerCommand('gitlens.views.openChangedFiles', this.openFiles, this); commands.registerCommand('gitlens.views.openChangedFileDiffs', this.openAllChanges, this); commands.registerCommand('gitlens.views.openChangedFileDiffsWithWorking', this.openAllChangesWithWorking, this); @@ -886,19 +885,6 @@ export class ViewCommands { return GitActions.Commit.openFilesAtRevision(node.commit); } - @debug() - private openRevisionOnRemote(node: CommitFileNode) { - if (!(node instanceof CommitFileNode) || node instanceof StashFileNode) return Promise.resolve(); - - return executeEditorCommand( - Commands.OpenFileInRemote, - node.commit.toGitUri(node.commit.status === 'D'), - { - range: false, - }, - ); - } - private terminalRemoveRemote(node: RemoteNode) { if (!(node instanceof RemoteNode)) return;