This commit is contained in:
Peng Lyu 2024-03-27 15:56:02 -07:00 committed by GitHub
parent d948d379b2
commit cac2dcf41e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -929,7 +929,7 @@ export class NotebookCellList extends WorkbenchList<CellViewModel> implements ID
// wait for the editor to be created if the cell is in editing mode
cell.getEditState() === CellEditState.Editing
// wait for the editor to be created if we are revealing the first line of the cell
|| revealType === CellRevealType.FirstLineIfOutsideViewport
|| (revealType === CellRevealType.FirstLineIfOutsideViewport && cell.cellKind === CellKind.Code)
) && !cell.editorAttached) {
return getEditorAttachedPromise(cell);
}