Pārlūkot izejas kodu

Fixes #2734 allows file history nodes

main
Eric Amodio pirms 1 gada
vecāks
revīzija
7c03cf72ad
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  1. +5
    -2
      src/views/viewCommands.ts

+ 5
- 2
src/views/viewCommands.ts Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt