MCPcopy
hub / github.com/srcbookdev/srcbook / formatCell

Function formatCell

packages/web/src/components/cells/code.tsx:320–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 }
319
320 function formatCell() {
321 if (!channel) {
322 return;
323 }
324 setCellMode('formatting');
325 channel.push('cell:format', {
326 cellId: cell.id,
327 });
328 }
329
330 async function onGetDefinitionContents(pos: number, cell: CodeCellType): Promise<string> {
331 return new Promise((resolve, reject) => {

Callers 1

ControlledCodeCellFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected