diff --git a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts index 760303df2a0..1b3ad2962c3 100644 --- a/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts +++ b/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts @@ -1208,7 +1208,7 @@ export class NotebookCellList extends WorkbenchList implements ID const focus = focused.length ? focused[0] : null; // If the cell is growing, we should favor anchoring to the focused cell - if (focused) { + if (focus) { const cellEditorIsFocused = this.view.element(focused[0]).focusMode === CellFocusMode.Editor; const anchorFocusedSetting = this.configurationService.getValue(NotebookSetting.anchorToFocusedCell); const growing = this.view.elementHeight(index) < size;