MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / edit

Method edit

src/test/datascience/mockTextEditor.ts:79–88  ·  view source on GitHub ↗
(
        callback: (editBuilder: TextEditorEdit) => void,
        _options?: { undoStopBefore: boolean; undoStopAfter: boolean } | undefined
    )

Source from the content-addressed store, hash-verified

77 return undefined;
78 }
79 public edit(
80 callback: (editBuilder: TextEditorEdit) => void,
81 _options?: { undoStopBefore: boolean; undoStopAfter: boolean } | undefined
82 ): Thenable<boolean> {
83 return new Promise((r) => {
84 const editor = new MockEditorEdit(this._documentManager, this._document);
85 callback(editor);
86 r(true);
87 });
88 }
89 public insertSnippet(
90 _snippet: SnippetString,
91 _location?: Range | Position | Range[] | Position[] | undefined,

Callers 8

openPythonFileMethod · 0.45
insertIntoInputEditorFunction · 0.45
sharedIWDebuggerTestsFunction · 0.45
deleteCellsMethod · 0.45
changeCellToMethod · 0.45
exchangeTextLinesMethod · 0.45
insertCellMethod · 0.45

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected