File tree Expand file tree Collapse file tree 1 file changed +27
-14
lines changed Expand file tree Collapse file tree 1 file changed +27
-14
lines changed Original file line number Diff line number Diff line change @@ -604,22 +604,35 @@ export class DebugSessionFeature
604
604
) ;
605
605
}
606
606
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 ( ) ;
610
614
611
- if ( terminatedSession . id !== session . id ) {
612
- return ;
613
- }
615
+ if ( terminatedSession . id !== session . id ) {
616
+ return ;
617
+ }
614
618
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
+ }
623
636
624
637
return this . tempSessionDetails ;
625
638
}
You can’t perform that action at this time.
0 commit comments