Bladeren bron

Removes openFileRevisionInRemote command

main
Eric Amodio 4 jaren geleden
bovenliggende
commit
79d34ec4c8
2 gewijzigde bestanden met toevoegingen van 0 en 29 verwijderingen
  1. +0
    -15
      package.json
  2. +0
    -14
      src/views/viewCommands.ts

+ 0
- 15
package.json Bestand weergeven

@ -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",

+ 0
- 14
src/views/viewCommands.ts Bestand weergeven

@ -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<OpenFileOnRemoteCommandArgs>(
Commands.OpenFileInRemote,
node.commit.toGitUri(node.commit.status === 'D'),
{
range: false,
},
);
}
private terminalRemoveRemote(node: RemoteNode) {
if (!(node instanceof RemoteNode)) return;

Laden…
Annuleren
Opslaan