Skip to content

Commit 50610f0

Browse files
committed
callstack improvements microsoft#106957
1 parent ce95d7e commit 50610f0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class CallStackView extends ViewPane {
156156

157157
const thread = sessions.length === 1 && sessions[0].getAllThreads().length === 1 ? sessions[0].getAllThreads()[0] : undefined;
158158
if (thread && thread.stoppedDetails) {
159-
this.pauseMessageLabel.textContent = thread.stoppedDetails.description || nls.localize('debugStopped', "Paused on {0}", thread.stoppedDetails.reason || '');
159+
this.pauseMessageLabel.textContent = thread.stateLabel;
160160
this.pauseMessageLabel.title = thread.stoppedDetails.text || '';
161161
this.pauseMessageLabel.classList.toggle('exception', thread.stoppedDetails.reason === 'exception');
162162
this.pauseMessage.hidden = false;
@@ -547,7 +547,7 @@ class SessionsRenderer implements ICompressibleTreeRenderer<IDebugSession, Fuzzy
547547
data.stateLabel.style.display = '';
548548

549549
if (thread && thread.stoppedDetails) {
550-
data.stateLabel.textContent = thread.stoppedDetails.description || nls.localize('debugStopped', "Paused on {0}", thread.stoppedDetails.reason || '');
550+
data.stateLabel.textContent = thread.stateLabel;
551551
if (thread.stoppedDetails.text) {
552552
data.session.title = thread.stoppedDetails.text;
553553
}
@@ -577,7 +577,7 @@ class ThreadsRenderer implements ICompressibleTreeRenderer<IThread, FuzzyScore,
577577
renderTemplate(container: HTMLElement): IThreadTemplateData {
578578
const thread = dom.append(container, $('.thread'));
579579
const name = dom.append(thread, $('.name'));
580-
const stateLabel = dom.append(thread, $('span.state.label'));
580+
const stateLabel = dom.append(thread, $('span.state.label.monaco-count-badge.long'));
581581
const label = new HighlightedLabel(name, false);
582582
const actionBar = new ActionBar(thread);
583583

src/vs/workbench/contrib/debug/common/debugModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export class Thread implements IThread {
428428
get stateLabel(): string {
429429
if (this.stoppedDetails) {
430430
return this.stoppedDetails.description ||
431-
this.stoppedDetails.reason ? nls.localize({ key: 'pausedOn', comment: ['indicates reason for program being paused'] }, "Paused on {0}", this.stoppedDetails.reason) : nls.localize('paused', "Paused");
431+
(this.stoppedDetails.reason ? nls.localize({ key: 'pausedOn', comment: ['indicates reason for program being paused'] }, "Paused on {0}", this.stoppedDetails.reason) : nls.localize('paused', "Paused"));
432432
}
433433

434434
return nls.localize({ key: 'running', comment: ['indicates state'] }, "Running");

0 commit comments

Comments
 (0)