MCPcopy
hub / github.com/github/awesome-copilot / findSectionOrThrow

Function findSectionOrThrow

extensions/site-studio/extension.mjs:623–629  ·  view source on GitHub ↗
(sectionId)

Source from the content-addressed store, hash-verified

621}
622
623function findSectionOrThrow(sectionId) {
624 const section = stateCache.sections.find((item) => item.id === sectionId);
625 if (!section) {
626 throw new CanvasError("section_not_found", `Unknown section: ${sectionId}`);
627 }
628 return section;
629}
630
631function addChange(change) {
632 const timestamp = safeString(change.timestamp, nowIso());

Callers 7

addNoteFunction · 0.85
updateSectionStatusFunction · 0.85
upsertSectionContentFunction · 0.85
deleteSectionContentFunction · 0.85
getSectionGuideFunction · 0.85
handleApiFunction · 0.85
extension.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected