MCPcopy Create free account
hub / github.com/Snapchat/Valdi / edit

Method edit

valdi/vscode_debugger/src/typings/vscode.d.ts:1128–1128  ·  view source on GitHub ↗

* Perform an edit on the document associated with this text editor. * * The given callback-function is invoked with an [edit-builder](#TextEditorEdit) which must * be used to make edits. Note that the edit-builder is only valid while the * callback executes. * * @param callback A f

(callback: (editBuilder: TextEditorEdit) => void, options?: { undoStopBefore: boolean; undoStopAfter: boolean; })

Source from the content-addressed store, hash-verified

1126 * @return A promise that resolves with a value indicating if the edits could be applied.
1127 */
1128 edit(callback: (editBuilder: TextEditorEdit) => void, options?: { undoStopBefore: boolean; undoStopAfter: boolean; }): Thenable<boolean>;
1129
1130 /**
1131 * Insert a [snippet](#SnippetString) and put the editor into snippet mode. "Snippet mode"

Callers 4

promptToOpenFunction · 0.65
generateSecretKeyMethod · 0.65
setMethod · 0.65
eraseMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected