@@ -93,7 +93,7 @@ export class CallStackView extends ViewPane {
93
93
if ( thread && thread . stoppedDetails ) {
94
94
this . pauseMessageLabel . textContent = thread . stoppedDetails . description || nls . localize ( 'debugStopped' , "Paused on {0}" , thread . stoppedDetails . reason || '' ) ;
95
95
this . pauseMessageLabel . title = thread . stoppedDetails . text || '' ;
96
- dom . toggleClass ( this . pauseMessageLabel , 'exception' , thread . stoppedDetails . reason === 'exception' ) ;
96
+ this . pauseMessageLabel . toggleAttribute ( 'exception' , thread . stoppedDetails . reason === 'exception' ) ;
97
97
this . pauseMessage . hidden = false ;
98
98
if ( this . toolbar ) {
99
99
this . toolbar . setActions ( [ ] ) ( ) ;
@@ -511,11 +511,11 @@ class StackFramesRenderer implements ITreeRenderer<IStackFrame, FuzzyScore, ISta
511
511
512
512
renderElement ( element : ITreeNode < IStackFrame , FuzzyScore > , index : number , data : IStackFrameTemplateData ) : void {
513
513
const stackFrame = element . element ;
514
- dom . toggleClass ( data . stackFrame , 'disabled' , ! stackFrame . source || ! stackFrame . source . available || isDeemphasized ( stackFrame ) ) ;
515
- dom . toggleClass ( data . stackFrame , 'label' , stackFrame . presentationHint === 'label' ) ;
516
- dom . toggleClass ( data . stackFrame , 'subtle' , stackFrame . presentationHint === 'subtle' ) ;
517
- const hasActions = stackFrame . thread . session . capabilities . supportsRestartFrame && stackFrame . presentationHint !== 'label' && stackFrame . presentationHint !== 'subtle' ;
518
- dom . toggleClass ( data . stackFrame , 'has-actions' , hasActions ) ;
514
+ data . stackFrame . toggleAttribute ( 'disabled' , ! stackFrame . source || ! stackFrame . source . available || isDeemphasized ( stackFrame ) ) ;
515
+ data . stackFrame . toggleAttribute ( 'label' , stackFrame . presentationHint === 'label' ) ;
516
+ data . stackFrame . toggleAttribute ( 'subtle' , stackFrame . presentationHint === 'subtle' ) ;
517
+ const hasActions = ! ! stackFrame . thread . session . capabilities . supportsRestartFrame && stackFrame . presentationHint !== 'label' && stackFrame . presentationHint !== 'subtle' ;
518
+ data . stackFrame . toggleAttribute ( 'has-actions' , hasActions ) ;
519
519
520
520
data . file . title = stackFrame . source . inMemory ? stackFrame . source . uri . path : this . labelService . getUriLabel ( stackFrame . source . uri ) ;
521
521
if ( stackFrame . source . raw . origin ) {
0 commit comments