Explorar el Código

Fixes issue with open file on remote

main
Eric Amodio hace 4 años
padre
commit
0315349c48
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      src/commands/openCommitOnRemote.ts
  2. +1
    -1
      src/commands/openFileOnRemote.ts

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

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

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

Cargando…
Cancelar
Guardar