MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / getNotebookFromCellDocument

Function getNotebookFromCellDocument

src/util/notebook.ts:10–12  ·  view source on GitHub ↗
(document: TextDocument)

Source from the content-addressed store, hash-verified

8 * given cell
9 */
10export function getNotebookFromCellDocument(document: TextDocument) {
11 return (document as any).notebook as NotebookDocument | undefined;
12}
13
14/**
15 * Returns the index of the cell corresponding to the given document in the

Callers 1

focusEditorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected