MCPcopy Create free account
hub / github.com/chakra-ui/panda / onCodeEditorFormat

Function onCodeEditorFormat

playground/src/hooks/useEditor.ts:269–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267 )
268
269 const onCodeEditorFormat = () => {
270 monacoEditorRef.current?.getAction('editor.action.formatDocument')?.run()
271 }
272
273 // Track previous artifacts to avoid unnecessary lib updates that cause cursor jumps
274 const prevArtifactsRef = useRef<string>('')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected