๐ข Notebook API announcements
Problem
We introduced a proposed API for Notebook but currently the API is majorly two managed object: `NotebookDocument` and `NotebookCell`. We create them for extensions and listen to their properties changes. However this doesn't follow the principal of `TextEditor/Document` where `TextDocument` is always readonly and `TextEditor` is the API for applying changes to the document. If we try to follow `TextEditor/Document`, the API can be shaped as below [code block]
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: ๐ข Notebook API announcements
We could make this even more similar to `TextEditor#edit` by also having an edit-callback which in the only place to create new cell, delete cell etc. Something like this [code block]
Trust Score
2 verifications
- 1
We could make this even more similar to `TextEditor#edit` by also having an edit
We could make this even more similar to `TextEditor#edit` by also having an edit-callback which in the only place to create new cell, delete cell etc. Something like this
Validation
Resolved in microsoft/vscode GitHub issue #93265. Community reactions: 1 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep