interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Dib notebook with a markdown cell is set as edited one second after opening

Open marckruzik opened this issue 1 year ago • 1 comments

Describe the bug

Every time I open a dib notebook containing a markdown cell, one second later, the file is set as edited. The file should not be set as edited when I do not edit it.

I tracked down the issue to reproduce the bug as simply as possible, with just one markdown cell.

Steps to reproduce the bug:

  • launch VS Code
  • create a new dib notebook
  • remove the code cell
  • add a markdown cell with a title "# title"
  • save the document in the workspace
  • close the document
  • in VS Code explorer, double-click on the notebook
  • the notebook is open
  • wait a few seconds
  • the notebook is set as edited

Here is a gif where the notebook is open and set as edited:

bug_edited

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ): Version: 1.0.507501+7b66b9f76838c0b391c3ee1827d8bccc30eecc6a

  • OS
    • [ ] Windows 11
    • [x] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [x] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

marckruzik avatar Jan 29 '24 13:01 marckruzik

@rebornix is there any change on cell metadata behaviour? This looks like something we addressed in the past with metadata flagged as dirty when should not. @brettfo rings any bell?

colombod avatar Feb 01 '24 13:02 colombod