diff --git a/src/vs/workbench/api/browser/mainThreadDebugService.ts b/src/vs/workbench/api/browser/mainThreadDebugService.ts index 69edcaa8ecd..16cd23d554b 100644 --- a/src/vs/workbench/api/browser/mainThreadDebugService.ts +++ b/src/vs/workbench/api/browser/mainThreadDebugService.ts @@ -116,12 +116,12 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb } $registerDebugVisualizerTree(treeId: string, canEdit: boolean): void { - this.visualizerService.registerTree(treeId, { + this._visualizerTreeHandles.set(treeId, this.visualizerService.registerTree(treeId, { disposeItem: id => this._proxy.$disposeVisualizedTree(id), getChildren: e => this._proxy.$getVisualizerTreeItemChildren(treeId, e), getTreeItem: e => this._proxy.$getVisualizerTreeItem(treeId, e), editItem: canEdit ? ((e, v) => this._proxy.$editVisualizerTreeItem(e, v)) : undefined - }); + })); } $unregisterDebugVisualizerTree(treeId: string): void { diff --git a/src/vs/workbench/contrib/debug/browser/repl.ts b/src/vs/workbench/contrib/debug/browser/repl.ts index e5ed01694c6..a7dbf5cdc76 100644 --- a/src/vs/workbench/contrib/debug/browser/repl.ts +++ b/src/vs/workbench/contrib/debug/browser/repl.ts @@ -173,9 +173,7 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget { } this._register(this.debugService.getViewModel().onDidFocusSession(session => { - if (this.isVisible()) { - this.onDidFocusSession(session); - } + this.onDidFocusSession(session); })); this._register(this.debugService.getViewModel().onDidEvaluateLazyExpression(async e => { if (e instanceof Variable && this.tree?.hasNode(e)) { @@ -213,8 +211,6 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget { const focusedSession = this.debugService.getViewModel().focusedSession; if (this.tree && this.tree.getInput() !== focusedSession) { this.onDidFocusSession(focusedSession); - } else { - this.selectSession(); } this.setMode();