From dd0856ddda3274166aa61c19695c14dcfa8cd66e Mon Sep 17 00:00:00 2001 From: Aaron Munger <2019016+amunger@users.noreply.github.com> Date: Mon, 14 Jul 2025 20:36:35 -0700 Subject: [PATCH] only add listeners when enabled (#255914) --- .../contrib/notebook/browser/contrib/troubleshoot/layout.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.ts b/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.ts index 9ee0597c6ee..fbb8fe4893c 100644 --- a/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.ts +++ b/src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.ts @@ -50,9 +50,8 @@ export class TroubleshootController extends Disposable implements INotebookEdito return; } - this._updateListener(); - if (this._enabled) { + this._updateListener(); this._createNotebookOverlay(); this._createCellOverlays(); }