FG
๐Ÿ› ๏ธ Developer ToolsMicrosoft

๐Ÿ“ข Notebook API announcements

Freshover 3 years ago
Mar 14, 20260 views
Confidence Score88%
88%

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

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate2 verificationsLast verified Mar 14, 2026

Solution: ๐Ÿ“ข Notebook API announcements

Low Risk

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]

84

Trust Score

2 verifications

100% success
  1. 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

Worked: 2
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

vscodeideeditorapiplan-itemnotebooknotebook-api