Skip to content

Commit dd0856d

Browse files
authored
only add listeners when enabled (microsoft#255914)
1 parent 437775d commit dd0856d

File tree

1 file changed

+1
-2
lines changed
  • src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot

1 file changed

+1
-2
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/troubleshoot/layout.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ export class TroubleshootController extends Disposable implements INotebookEdito
5050
return;
5151
}
5252

53-
this._updateListener();
54-
5553
if (this._enabled) {
54+
this._updateListener();
5655
this._createNotebookOverlay();
5756
this._createCellOverlays();
5857
}

0 commit comments

Comments
 (0)