MCPcopy Create free account
hub / github.com/cweijan/vscode-office / renderCodeBlocks

Function renderCodeBlocks

vditor/src/ts/codeBlock/codeMirrorManager.ts:1651–1660  ·  view source on GitHub ↗
(vditor: IVditor)

Source from the content-addressed store, hash-verified

1649 });
1650};
1651
1652export const renderCodeBlocks = (vditor: IVditor) => {
1653 const editor = getModeEditor(vditor);
1654 if (!editor) {
1655 return;
1656 }
1657 for (const block of editor.querySelectorAll(getCodeBlockSelector(vditor.currentMode))) {
1658 scheduleLazyCodeBlock(vditor, block as HTMLElement);
1659 }
1660 syncMathBlocksDisplayMode(editor, vditor);
1661};
1662
1663/** @deprecated use renderCodeBlocks */

Callers 5

toolbarEventFunction · 0.90
renderDomByMdFunction · 0.90
setEditModeFunction · 0.90
insertPastedCodeFunction · 0.90

Calls 3

scheduleLazyCodeBlockFunction · 0.85
getModeEditorFunction · 0.70

Tested by

no test coverage detected