Ver a proveniência

Removes openFileRevisionInRemote command

main
Eric Amodio há 4 anos
ascendente
cometimento
79d34ec4c8
2 ficheiros alterados com 0 adições e 29 eliminações
  1. +0
    -15
      package.json
  2. +0
    -14
      src/views/viewCommands.ts

+ 0
- 15
package.json Ver ficheiro

@ -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 Ver ficheiro

@ -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;

Carregando…
Cancelar
Guardar