Skip to content

Commit a17ce7a

Browse files
committed
Prettier formatting fixes
1 parent aca8ca3 commit a17ce7a

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

src/features/DebugSession.ts

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -604,22 +604,35 @@ export class DebugSessionFeature
604604
);
605605
}
606606

607-
const closeDebugEvent = debug.onDidTerminateDebugSession(
608-
(terminatedSession) => {
609-
closeDebugEvent.dispose();
607+
if (
608+
session.configuration.temporaryConsoleWindowActionOnDebugEnd !==
609+
"keep"
610+
) {
611+
const closeDebugEvent = debug.onDidTerminateDebugSession(
612+
(terminatedSession) => {
613+
closeDebugEvent.dispose();
610614

611-
if (terminatedSession.id !== session.id) {
612-
return;
613-
}
615+
if (terminatedSession.id !== session.id) {
616+
return;
617+
}
614618

615-
if (terminatedSession.configuration.temporaryConsoleWindowActionOnDebugEnd === "close") {
616-
this.tempDebugProcess?.dispose();
617-
} else if (terminatedSession.configuration.temporaryConsoleWindowActionOnDebugEnd === "hide" &&
618-
window.terminals.includes(previousActiveTerminal)) {
619-
previousActiveTerminal.show();
620-
}
621-
},
622-
);
619+
if (
620+
terminatedSession.configuration
621+
.temporaryConsoleWindowActionOnDebugEnd === "close"
622+
) {
623+
this.tempDebugProcess?.dispose();
624+
} else if (
625+
terminatedSession.configuration
626+
.temporaryConsoleWindowActionOnDebugEnd ===
627+
"hide" &&
628+
previousActiveTerminal &&
629+
window.terminals.includes(previousActiveTerminal)
630+
) {
631+
previousActiveTerminal.show();
632+
}
633+
},
634+
);
635+
}
623636

624637
return this.tempSessionDetails;
625638
}

0 commit comments

Comments
 (0)