File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -613,6 +613,10 @@ class PowerShellDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory
613
613
change . affectsConfiguration ( "powershell.trace.dap" )
614
614
) {
615
615
this . dapLogEnabled = workspace . getConfiguration ( "powershell" ) . get < boolean > ( "trace.dap" ) ?? false
616
+ if ( this . dapLogEnabled ) {
617
+ // Trigger the output pane to appear. This gives the user time to position it before starting a debug.
618
+ this . log ?. show ( true ) ;
619
+ }
616
620
}
617
621
} ) )
618
622
}
@@ -635,7 +639,7 @@ class PowerShellDebugAdapterTrackerFactory implements DebugAdapterTrackerFactory
635
639
async createDebugAdapterTracker ( session : DebugSession ) : Promise < DebugAdapterTracker > {
636
640
const sessionInfo = `${ this . adapterName } Debug Session: ${ session . name } [${ session . id } ]`
637
641
return {
638
- onWillStartSession : ( ) => this . dapLogEnabled && this . log ?. info ( `Starting ${ sessionInfo } . Set log level to trace to see DAP messages beyond errors` ) ,
642
+ onWillStartSession : ( ) => this . log ?. info ( `Starting ${ sessionInfo } . Set log level to trace to see DAP messages beyond errors` ) ,
639
643
onWillStopSession : ( ) => this . log ?. info ( `Stopping ${ sessionInfo } ` ) ,
640
644
onExit : code => this . log ?. info ( `${ sessionInfo } exited with code ${ code } ` ) ,
641
645
onWillReceiveMessage : m => {
You can’t perform that action at this time.
0 commit comments