Ver código fonte

Fixes issue with open file on remote

main
Eric Amodio 4 anos atrás
pai
commit
0315349c48
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      src/commands/openCommitOnRemote.ts
  2. +1
    -1
      src/commands/openFileOnRemote.ts

+ 1
- 1
src/commands/openCommitOnRemote.ts Ver arquivo

@ -42,7 +42,7 @@ export class OpenCommitOnRemoteCommand extends ActiveEditorCommand {
if (context.node.commit.isUncommitted) return Promise.resolve(undefined);
args = { ...args, sha: context.node.commit.sha };
uri = context.node.commit.isFile ? context.node.commit.uri : context.node.uri;
uri = context.node.uri;
}
if (isCommandContextGitTimelineItem(context)) {

+ 1
- 1
src/commands/openFileOnRemote.ts Ver arquivo

@ -50,7 +50,7 @@ export class OpenFileOnRemoteCommand extends ActiveEditorCommand {
args.branch = context.node.branch?.name;
}
uri = context.node.commit.isFile ? context.node.commit.uri : context.node.uri;
uri = context.node.uri;
} else if (context.type === 'viewItem') {
args = { ...args, range: false };

Carregando…
Cancelar
Salvar