From 79d34ec4c8fadfa53775b33562e640e7a7dd9c8e Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 25 Oct 2020 02:58:19 -0400 Subject: [PATCH] Removes openFileRevisionInRemote command --- package.json | 15 --------------- src/views/viewCommands.ts | 14 -------------- 2 files changed, 29 deletions(-) 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;