Skip to content

Commit cac2dcf

Browse files
authored
1 parent d948d37 commit cac2dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/notebookCellList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
929929
// wait for the editor to be created if the cell is in editing mode
930930
cell.getEditState() === CellEditState.Editing
931931
// wait for the editor to be created if we are revealing the first line of the cell
932-
|| revealType === CellRevealType.FirstLineIfOutsideViewport
932+
|| (revealType === CellRevealType.FirstLineIfOutsideViewport && cell.cellKind === CellKind.Code)
933933
) && !cell.editorAttached) {
934934
return getEditorAttachedPromise(cell);
935935
}

0 commit comments

Comments
 (0)