瀏覽代碼

Fixes Open Revision command

main
Eric Amodio 5 年之前
父節點
當前提交
fe5d18b38b
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/views/viewCommands.ts

+ 3
- 1
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) {

Loading…
取消
儲存