diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index cd9e973..6982ff2 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -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,