Repository navigation
Restore execution count after sticky-spinner. - #344239
Open
Samuel Ferencik (sferencik) wants to merge 2 commits into
Open
Samuel Ferencik (sferencik) wants to merge 2 commits into
Samuel Ferencik (sferencik) wants to merge 2 commits into
Conversation
added 2 commits
October 26, 2026 03:09
This follows ad80711 (microsoft#250327), which renamed the spinner class on `_executionOrderLabel` from `sticky` to `sticky-spinner`. The cleanup branches in `_updatePosition()` still checked and removed `sticky`, reintroducing microsoft#250130 (microsoft#250131) after cell execution finished.
This follows ad80711 (microsoft#250327) and relates to microsoft#250130. Checking `sticky-spinner` on `_executionOrderContent` instead of `_executionOrderLabel` always returned `false`, recreating the spinner DOM on every scroll event. Clear it when overwriting `innerText`.
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The localized changes consistently correct spinner-state handling, with no unresolved findings.
No open issues 🎉
What changed in this PR
Fixes notebook execution-count restoration after the sticky-spinner class rename, addressing the stuck spinner reported in #250130.
Changes:
- Uses
sticky-spinnerconsistently when checking and clearing sticky state. - Checks the label element to avoid recreating the spinner on every scroll.
- Clears spinner state when execution-count content is refreshed or removed.
| File | Description |
|---|---|
src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.ts |
Corrects spinner-state tracking and restores execution-count labels. |
Review effort: Balanced
Author
|
@microsoft-github-policy-service agree |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When executing a tall notebook code cell that produces no output while its bottom edge is scrolled below the viewport, the sticky execution spinner in the left gutter remains stuck spinning after execution finishes instead of transitioning to the
[n]execution count (#250130).This fixes ad80711 (#250327), which renamed the spinner class on
_executionOrderLabelfromstickytosticky-spinner:_updatePosition()still checked and removedstickyrather than the newsticky-spinner, undoing Fix notebook sticky execution spinner getting stuck after execution finishes #250131 and leaving the spinner stuck in the gutter once execution finished. Cells that produce output happened to self-heal only because_updatePerformanceMetadata()updatesrenderDurationasynchronously after completion, firing a secondinternalMetadataChangedevent oncecellIsRunningis alreadyfalse.isAlreadyIconcheckedsticky-spinneron_executionOrderContentinstead of_executionOrderLabel, always returningfalseand recreating the spinner DOM on every scroll event.How to test
repro.ipynband open it in VS Code:{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "import time\ntime.sleep(2)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# bottom of cell" ] } ], "metadata": { "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }# bottom of cellscrolled below the bottom of the viewport, run the cell using the cell's Execute button (Ctrl+Enter/Cmd+Enter) and wait 2 seconds without scrolling.# bottom of celland verify that the gutter shows[1]next to✓ 2.0srather than a stuck spinning icon.