Browse Source

Fixes #2734 allows file history nodes

main
Eric Amodio 1 year ago
parent
commit
7c03cf72ad
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/views/viewCommands.ts

+ 5
- 2
src/views/viewCommands.ts View File

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

Loading…
Cancel
Save