Skip to content

Commit

Permalink
mark current proposal as deprecated, #102091
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Dec 23, 2021
1 parent 419d62a commit 5d3b6fb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/vscode-dts/vscode.proposed.textDocumentNotebook.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ declare module 'vscode' {
export interface TextDocument {

/**
* The {@link NotebookDocument notebook} that contains this document as a notebook cell or `undefined` when
* the document is not contained by a notebook (this should be the more frequent case).
* @deprecated
*
* This proposal won't be finalized like this, see https://github.com/microsoft/vscode/issues/102091#issuecomment-865050645.
* Already today you can use
*
* ```ts
* vscode.workspace.notebookDocuments.find(notebook => notebook.getCells().some(cell => cell.document === myTextDocument))
* ```
*
*
*/
notebook: NotebookDocument | undefined;
}
Expand Down

0 comments on commit 5d3b6fb

Please sign in to comment.