-
Notifications
You must be signed in to change notification settings - Fork 39.3k
Notebook: Invisible markdown cells #129477
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersnotebooknotebook-markdownverifiedVerification succeededVerification succeeded
Milestone
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityIssue identified as high-priorityinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code Insidersnotebooknotebook-markdownverifiedVerification succeededVerification succeeded
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:
NotebookTextModelhas the missing cellsNotebookViewModelhas the missing cells, and hidden ranges are emptyListView.rangeMap, the height for these missing cells are 0MarkdownCellwill not be created, thus no render markdown request will be sent to the webviewNot 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.