diff --git a/news/2 Fixes/9259.md b/news/2 Fixes/9259.md new file mode 100644 index 00000000000..316ab282458 --- /dev/null +++ b/news/2 Fixes/9259.md @@ -0,0 +1 @@ +Fix auto scrolling in the interactive window. diff --git a/src/client/datascience/interactive-window/interactiveWindow.ts b/src/client/datascience/interactive-window/interactiveWindow.ts index 6392494580f..e78c1176924 100644 --- a/src/client/datascience/interactive-window/interactiveWindow.ts +++ b/src/client/datascience/interactive-window/interactiveWindow.ts @@ -747,7 +747,7 @@ export class InteractiveWindow implements IInteractiveWindowLoadable { // since the notebook cell we're going to add is by definition not visible const shouldScroll = editor?.visibleRanges.find((r) => { - return r.end === editor.document.cellCount - 1; + return r.end === editor.document.cellCount; }) != undefined || this.pendingNotebookScrolls.find((r) => r.end == editor.document.cellCount - 1) != undefined;