Explorar el Código

Fixes Open Revision command

main
Eric Amodio hace 5 años
padre
commit
fe5d18b38b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/views/viewCommands.ts

+ 3
- 1
src/views/viewCommands.ts Ver fichero

@ -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) {

Cargando…
Cancelar
Guardar