You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running a cell affects (and doubles) the undo stack #117945
In this Gif, I pressed undo 8 times (since I ran the cell 4 times) to get back to the actual editor undo. You can see the counter in [] update for each undo stop.
This is a typical thing to happen but we should explore how to improve it
Users run cell
Kernel resets execution count
Kernel sets start time
Kernel sets run state finsih
Kernel sets execution count
For every edit, kernel applies workspace edit, which will introduce a unique undo point, which makes undo hard as users have to go through every change, even if it's invisible or less-noticeable.
Execution state is now out of metadata so we will have fewer undo/redo points. However users might still have multiple undo/redo points as there might be multiple cell model updates within one single execution. Maybe we could consider merging all of them before execution finishes. Leaving it to roblourens .
Activity
vscode-triage-bot commentedon Mar 2, 2021
Pinging
notebooktopic followers: Claudia Regio (@claudiaregio) Rich Chiodo (@rchiodo) Jim Griesmer (@greazer) Don Jayamanne (@DonJayamanne) jilljac (@jilljac)rebornix commentedon Mar 2, 2021
This is a typical thing to happen but we should explore how to improve it
For every edit, kernel applies workspace edit, which will introduce a unique undo point, which makes undo hard as users have to go through every change, even if it's invisible or less-noticeable.
rebornix commentedon Dec 30, 2022
Execution state is now out of metadata so we will have fewer undo/redo points. However users might still have multiple undo/redo points as there might be multiple cell model updates within one single execution. Maybe we could consider merging all of them before execution finishes. Leaving it to roblourens .
roblourens commentedon Dec 30, 2022
Model updates for what? Output updates won't be undoable
DonJayamanne commentedon Dec 17, 2024
Duplicate of #207523