Change:
} }); <ins> registerAction2(class extends NotebookCellAction { constructor() { super({ id: NOTEBOOK_CURSOR_PAGEUP_COMMAND_ID, title: localize('cursorPageUp', "Cell Cursor Page Up"), keybinding: [ { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.has(InputFocusedContextKey), EditorContextKeys.editorTextFocus, ), primary: KeyCode.PageUp, weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } ] }); } async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void> { EditorExtensionsRegistry.getEditorCommand('cursorPageUp').runCommand(accessor, { pageSize: getPageSize(context) }); } }); registerAction2(class extends NotebookCellAction { constructor() { super({ id: NOTEBOOK_CURSOR_PAGEUP_SELECT_COMMAND_ID, title: localize('cursorPageUpSelect', "Cell Cursor Page Up Select"), keybinding: [ { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.has(InputFocusedContextKey), EditorContextKeys.editorTextFocus, ), primary: KeyMod.Shift | KeyCode.PageUp, weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } ] }); } async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void> { EditorExtensionsRegistry.getEditorCommand('cursorPageUpSelect').runCommand(accessor, { pageSize: getPageSize(context) }); } }); registerAction2(class extends NotebookCellAction { constructor() { super({ id: NOTEBOOK_CURSOR_PAGEDOWN_COMMAND_ID, title: localize('cursorPageDown', "Cell Cursor Page Down"), keybinding: [ { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.has(InputFocusedContextKey), EditorContextKeys.editorTextFocus, ), primary: KeyCode.PageDown, weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } ] }); } async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void> { EditorExtensionsRegistry.getEditorCommand('cursorPageDown').runCommand(accessor, { pageSize: getPageSize(context) }); } }); registerAction2(class extends NotebookCellAction { constructor() { super({ id: NOTEBOOK_CURSOR_PAGEDOWN_SELECT_COMMAND_ID, title: localize('cursorPageDownSelect', "Cell Cursor Page Down Select"), keybinding: [ { when: ContextKeyExpr.and( NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.has(InputFocusedContextKey), EditorContextKeys.editorTextFocus, ), primary: KeyMod.Shift | KeyCode.PageDown, weight: NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT } ] }); } async runWithContext(accessor: ServicesAccessor, context: INotebookCellActionContext): Promise<void> { EditorExtensionsRegistry.getEditorCommand('cursorPageDownSelect').runCommand(accessor, { pageSize: getPageSize(context) }); } }); function getPageSize(context: INotebookCellActionContext) { const editor = context.notebookEditor; const layoutInfo = editor._getViewModel().layoutInfo; const lineHeight = layoutInfo?.fontInfo.lineHeight || 17; return Math.max(1, Math.floor((layoutInfo?.height || 0) / lineHeight) - 2); } </ins> Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Configuration).registerConfiguration({ id: 'notebook',

Discussion:
Issue Type: <bBug</ba notebook file. a cell which is large enough to overflow screen. <kbdPgDown</kbdand <kbdPgUp</kbdInstead of going one page down in PgDown, cursor goes to end of cell ! Does this issue occur when all extensions are disabled?: Yes VS Code version: Code 1.63.2 (, 2021-12-15T09:39:46.686Z) OS version: Linux x64 5.13.0-22-generic snap Restricted Mode: No <details<summarySystem Info</summary </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --