diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index 8ba6162..7520541 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -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) {