Bläddra i källkod

Fixes issue with open file on remote

main
Eric Amodio 4 år sedan
förälder
incheckning
0315349c48
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. +1
    -1
      src/commands/openCommitOnRemote.ts
  2. +1
    -1
      src/commands/openFileOnRemote.ts

+ 1
- 1
src/commands/openCommitOnRemote.ts Visa fil

@ -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 Visa fil

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

Laddar…
Avbryt
Spara