Skip to content

Notebook: Invisible markdown cells #129477

@rebornix

Description

@rebornix

We have seen reports recently about part of the document missing in the editor and I ran into this today. After a bit troubleshooting, I found when this happened:

  • NotebookTextModel has the missing cells
  • NotebookViewModel has the missing cells, and hidden ranges are empty
  • In ListView.rangeMap, the height for these missing cells are 0
  • In the webview, these cells are not rendered
  • When scrolling, since the size of these missing cells are zero, MarkdownCell will not be created, thus no render markdown request will be sent to the webview

Not sure how this happened and didn't seem to see this before, but we can try making sure first that the size of a unfolded markdown cell is always greater than 0 and if it becomes 0, throw an error to help troubleshoot.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code Insidersnotebooknotebook-markdownverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions