MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / writeAndRestore

Function writeAndRestore

docs/components/editor.js:234–238  ·  view source on GitHub ↗
(text, start, end = start)

Source from the content-addressed store, hash-verified

232
233 // Write `text` and place the caret at [start, end]; clear auto-pair marker.
234 const writeAndRestore = (text, start, end = start) => {
235 jar.updateCode(text);
236 jar.restore({ start, end });
237 autoPairCaret = -1;
238 };
239
240 const apply = (result) => {
241 if (!result) return false;

Callers 3

applyFunction · 0.85
insertAtCaretFunction · 0.85
createEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected