@@ -157,7 +157,7 @@ export class CallStackView extends ViewPane {
157157 const thread = sessions . length === 1 && sessions [ 0 ] . getAllThreads ( ) . length === 1 ? sessions [ 0 ] . getAllThreads ( ) [ 0 ] : undefined ;
158158 if ( thread && thread . stoppedDetails ) {
159159 this . pauseMessageLabel . textContent = thread . stateLabel ;
160- this . pauseMessageLabel . title = thread . stoppedDetails . text || '' ;
160+ this . pauseMessageLabel . title = thread . stateLabel ;
161161 this . pauseMessageLabel . classList . toggle ( 'exception' , thread . stoppedDetails . reason === 'exception' ) ;
162162 this . pauseMessage . hidden = false ;
163163 this . updateActions ( ) ;
@@ -930,13 +930,15 @@ class CallStackAccessibilityProvider implements IListAccessibilityProvider<CallS
930930
931931 getAriaLabel ( element : CallStackItem ) : string {
932932 if ( element instanceof Thread ) {
933- return nls . localize ( 'threadAriaLabel' , "Thread {0}, callstack, debug " , ( < Thread > element ) . name ) ;
933+ return nls . localize ( 'threadAriaLabel' , "Thread {0} {1} " , element . name , element . stateLabel ) ;
934934 }
935935 if ( element instanceof StackFrame ) {
936- return nls . localize ( 'stackFrameAriaLabel' , "Stack Frame {0}, line {1}, {2}, callstack, debug " , element . name , element . range . startLineNumber , getSpecificSourceName ( element ) ) ;
936+ return nls . localize ( 'stackFrameAriaLabel' , "Stack Frame {0}, line {1}, {2}" , element . name , element . range . startLineNumber , getSpecificSourceName ( element ) ) ;
937937 }
938938 if ( isDebugSession ( element ) ) {
939- return nls . localize ( 'sessionLabel' , "Debug Session {0}" , element . getLabel ( ) ) ;
939+ const thread = element . getAllThreads ( ) . find ( t => t . stopped ) ;
940+ const state = thread ? thread . stateLabel : nls . localize ( { key : 'running' , comment : [ 'indicates state' ] } , "Running" ) ;
941+ return nls . localize ( 'sessionLabel' , "Session {0} {1}" , element . getLabel ( ) , state ) ;
940942 }
941943 if ( typeof element === 'string' ) {
942944 return element ;
0 commit comments