Browse Source

Fixes Open Revision command

main
Eric Amodio 5 years ago
parent
commit
fe5d18b38b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/views/viewCommands.ts

+ 3
- 1
src/views/viewCommands.ts View File

@ -651,7 +651,7 @@ export class ViewCommands {
@debug()
private openFileRevision(
node: CommitFileNode | ResultsFileNode | StashFileNode | StatusFileNode,
options: OpenFileRevisionCommandArgs = { showOptions: { preserveFocus: true, preview: false } }
options?: OpenFileRevisionCommandArgs
) {
if (
!(node instanceof CommitFileNode) &&
@ -662,6 +662,8 @@ export class ViewCommands {
return undefined;
}
options = { showOptions: { preserveFocus: true, preview: false }, ...options };
let uri = options.uri;
if (uri == null) {
if (node instanceof ResultsFileNode) {

Loading…
Cancel
Save