Skip to content

Commit

Permalink
Fixes #2734 allows file history nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Jun 13, 2023
1 parent 4a9373b commit 7c03cf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/viewCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,11 @@ export class ViewCommands {
}

@debug()
private browseRepoAtRevision(node: ViewRefNode, options?: { before?: boolean; openInNewWindow?: boolean }) {
if (!(node instanceof ViewRefNode)) return Promise.resolve();
private browseRepoAtRevision(
node: ViewRefNode | ViewRefFileNode,
options?: { before?: boolean; openInNewWindow?: boolean },
) {
if (!(node instanceof ViewRefNode) && !(node instanceof ViewRefFileNode)) return Promise.resolve();

return browseAtRevision(node.uri, {
before: options?.before,
Expand Down

0 comments on commit 7c03cf7

Please sign in to comment.