Repository navigation
Description
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: OSS
- OS Version:
Steps to Reproduce:
- Create a new notebook on disc, save it => First entry
Create xx.ipynb - Add a new cell & save => Next entry
edit - Add another cell & save => Next entry
Insert Cell - Repeat this, a few times, and pause a few seconds before saving
The items in the time line are
- Either
editorInsert Cell, seems to alternate - Sometimes we end up with
Update Cell Metadataas well - Some times we do not have an entry in
Timelinefor the cell inserted, hence timeline is now completely wrong.
Problems
-
Create a new notebook and hit
Ctrl+Savemultiple times in quick succession and you'll end up with at least twoCreate xxx.ipynbin the timeline. -
If we create 10 cells, I would expect to see 10 different entries in Timeline, this is not the case
By design, also see pushStackElement API in Notebook Editor Model needs to line up with Text Editor #207523 -
We seem to alternate between
editandInsert Cell
Fixed pushStackElement API in NB Model to be same as same API in Text Model #207525 -
Clicking on one of the items such as
editentry in Timeline displays a broken editor (The editor could not be opened due to an unexpected error....)
Filed here Unable to open notebook diff view from timeline (Leaking event listener) #207418
If one of theeditworks, then clicking another fails.
This is very flaky, sometimes theeditentry that worked, no longer works at all. -
Hitting save without making any changes results in either
editorUpdate Cell Metadataappearing in the timeline (ensure notebook format is4.5)
Whats weird is the fact that SCM view shows now difference.
Create a notebok with a markdown cell
Possible the notebook metadata diffing works based on Object refs
Fixed Avoid unnecessary workspace edits #207377 -
Unwanted
Update Cell Metadataentry
This seems to be related to attachment changes.
Also, for some reason this entry shows that themetadatais removed. -
When you add a md cell
We end up with one itemeditand the diff view shows that themetadataof the md cell is removed.
When in fact we should have an entry forInsert MDas mentioned earlier.
A few issues here (metadata getting removed in diff view and missing entries)
Fixed pushStackElement API in NB Model to be same as same API in Text Model #207525 -
Work on a notebook and add 10 cells and edit tyhem, etc
Eventually use the keyzto remove all the added cells (i.e. undo them all)
NextSaveand you'll end up with anUndo / Redoentry
Clicking this item results in a completely broken view.
Activity
[-]Notebook Timeline is not right [/-][+]Notebook Timeline does not reflect true state of notebook[/+][-]Notebook Timeline does not reflect true state of notebook[/-][+]Notebook Timeline does not reflect true state of notebook & does not work as expected[/+]DonJayamanne commentedon Mar 13, 2024
Closing as fixed.
DonJayamanne commentedon Mar 25, 2024
Steps