Skip to content

Commit 076c919

Browse files
committed
1 parent 9a9e194 commit 076c919

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { IDebugService, IStackFrame } from 'vs/workbench/contrib/debug/common/de
1010
import { registerThemingParticipant } from 'vs/platform/theme/common/themeService';
1111
import { registerColor } from 'vs/platform/theme/common/colorRegistry';
1212
import { localize } from 'vs/nls';
13+
import { Event } from 'vs/base/common/event';
1314
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
1415
import { IEditorContribution } from 'vs/editor/common/editorCommon';
1516
import { ICodeEditor } from 'vs/editor/browser/editorBrowser';
@@ -91,7 +92,7 @@ export class CallStackEditorContribution implements IEditorContribution {
9192
@IDebugService private readonly debugService: IDebugService,
9293
) {
9394
const setDecorations = () => this.decorationIds = this.editor.deltaDecorations(this.decorationIds, this.createCallStackDecorations());
94-
this.toDispose.push(this.debugService.getViewModel().onDidFocusStackFrame(() => {
95+
this.toDispose.push(Event.any(this.debugService.getViewModel().onDidFocusStackFrame, this.debugService.getModel().onDidChangeCallStack)(() => {
9596
setDecorations();
9697
}));
9798
this.toDispose.push(this.editor.onDidChangeModel(e => {

0 commit comments

Comments
 (0)