Skip to content

Commit 1f3ff41

Browse files
committed
debug: minor fix in callstack
1 parent 484fa87 commit 1f3ff41

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/vs/workbench/contrib/debug/browser/callStackView.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class CallStackView extends ViewPane {
9393
if (thread && thread.stoppedDetails) {
9494
this.pauseMessageLabel.textContent = thread.stoppedDetails.description || nls.localize('debugStopped', "Paused on {0}", thread.stoppedDetails.reason || '');
9595
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');
9797
this.pauseMessage.hidden = false;
9898
if (this.toolbar) {
9999
this.toolbar.setActions([])();
@@ -511,11 +511,11 @@ class StackFramesRenderer implements ITreeRenderer<IStackFrame, FuzzyScore, ISta
511511

512512
renderElement(element: ITreeNode<IStackFrame, FuzzyScore>, index: number, data: IStackFrameTemplateData): void {
513513
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);
519519

520520
data.file.title = stackFrame.source.inMemory ? stackFrame.source.uri.path : this.labelService.getUriLabel(stackFrame.source.uri);
521521
if (stackFrame.source.raw.origin) {

src/vs/workbench/contrib/debug/browser/media/debugViewlet.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
text-transform: uppercase;
170170
}
171171

172-
.debug-viewlet .debug-call-stack .monaco-list-row:hover .stack-frame.has-actions .state {
172+
.debug-viewlet .debug-call-stack .monaco-list-row:hover .state {
173173
display: none;
174174
}
175175

0 commit comments

Comments
 (0)