Skip to main content

Module: libs/vscode-common/notebook

Functions

getCellIndex

getCellIndex(notebookDocument, document): number

Returns the index of the cell corresponding to the given document in the notebook. Assumes that the given notebook contains the given cell

Parameters

NameTypeDescription
notebookDocumentNotebookDocumentThe notebook document containing the cell
documentTextDocumentThe document corresponding to the given cell

Returns

number

The index of the cell in the notebook

Defined in

libs/vscode-common/notebook.ts:11