diff --git a/src/commands/openCommitOnRemote.ts b/src/commands/openCommitOnRemote.ts index 3e947ef..b9f47c0 100644 --- a/src/commands/openCommitOnRemote.ts +++ b/src/commands/openCommitOnRemote.ts @@ -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)) { diff --git a/src/commands/openFileOnRemote.ts b/src/commands/openFileOnRemote.ts index 0d9ce20..d5db7ae 100644 --- a/src/commands/openFileOnRemote.ts +++ b/src/commands/openFileOnRemote.ts @@ -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 };