MCPcopy Create free account
hub / github.com/danja/dogalog / setCode

Function setCode

src/app.js:85–88  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

83 }
84
85 function setCode(text) {
86 if (!editorView) return;
87 editorView.dispatch({ changes: { from: 0, to: editorView.state.doc.length, insert: text } });
88 }
89
90 // Allow optional external drivers (e.g., AI bridge) to read/write code or run queries.
91 const runQuery = (queryText) => {

Callers 3

applyCodeFunction · 0.85
setupEventHandlersFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected