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
Name | Type | Description |
---|---|---|
notebookDocument | NotebookDocument | The notebook document containing the cell |
document | TextDocument | The document corresponding to the given cell |
Returns
number
The index of the cell in the notebook
Defined in
libs/vscode-common/notebook.ts:11