MCPcopy
hub / github.com/NitroRCr/AIaW / updateCode

Function updateCode

src/utils/codejar.ts:561–565  ·  view source on GitHub ↗
(code: string, callOnUpdate: boolean = true)

Source from the content-addressed store, hash-verified

559 Object.assign(options, newOptions)
560 },
561 updateCode(code: string, callOnUpdate: boolean = true) {
562 editor.textContent = code
563 doHighlight(editor)
564 callOnUpdate && onUpdate(code)
565 },
566 onUpdate(callback: (code: string) => void) {
567 onUpdate = callback
568 },

Callers

nothing calls this directly

Calls 2

doHighlightFunction · 0.85
onUpdateFunction · 0.85

Tested by

no test coverage detected