Bläddra i källkod

Fixes #2734 allows file history nodes

main
Eric Amodio 1 år sedan
förälder
incheckning
7c03cf72ad
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. +5
    -2
      src/views/viewCommands.ts

+ 5
- 2
src/views/viewCommands.ts Visa fil

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

Laddar…
Avbryt
Spara