MCPcopy
hub / github.com/antonmedv/codejar / updateCode

Function updateCode

codejar.ts:559–563  ·  view source on GitHub ↗
(code: string, callOnUpdate: boolean = true)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

doHighlightFunction · 0.85
onUpdateFunction · 0.85

Tested by

no test coverage detected