-
Notifications
You must be signed in to change notification settings - Fork 29.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better API to associate a notebook cell document with its notebook #102091
Comments
fyi @rebornix |
Closing, the proposal is done but currently unused. We'll see if we keep this when finalizing the whole API |
|
@jrieken Thought I'd let u know how I'm using this today in my personal extensions:
For all of these, I also need the |
The plan is to replace |
Idea/sketch: namespace notebooks {
/**
* @returns A notebook cell which contents are represented by the given text document
*/
export function getNotebookCell(textDocument: TextDocument): NotebookCell | undefined;
} |
Commit: 5d3b6fb70eb39badfe4bb32ee9331434b4aec507
A notebook document contains cell documents, which are
vscode.TextDocument
types. There is no easy/nice way to get to a notebook from a document. Ideasnotebook.findContainerNotebook(document: TextDocument): NotebookDocument | undefined
TextDocument#notebook: NotebookDocument | undefined
The text was updated successfully, but these errors were encountered: