feat: open FSSHTTP OneNote sections

This commit is contained in:
2026-07-22 19:26:08 +02:00
parent a7b1cd7d16
commit eb15fecb3f
12 changed files with 877 additions and 21 deletions

View File

@@ -83,14 +83,14 @@ export function buildSectionContentModel(
series,
PROPERTY.ChildGraphSpaceElementNodes
);
for (const pageSpaceId of pageSpaceIds) {
for (const pageSpaceReference of pageSpaceIds) {
context.currentPage = undefined;
const pageSpace = store.objectSpaces.get(exGuidKey(pageSpaceId));
const pageSpace = store.objectSpaces.get(pageSpaceReference.key);
if (!pageSpace) {
addDiagnostic(
context,
'MISSING_PAGE_SPACE',
`Page object space ${exGuidKey(pageSpaceId)} is missing`,
`Page object space ${pageSpaceReference.key} is missing`,
'PageSeriesNode'
);
continue;
@@ -111,7 +111,7 @@ export function buildSectionContentModel(
addDiagnostic(
context,
'PAGE_PARSE_FAILED',
`Could not parse page ${exGuidKey(pageSpaceId)}: ${error instanceof Error ? error.message : String(error)}`,
`Could not parse page ${pageSpaceReference.key}: ${error instanceof Error ? error.message : String(error)}`,
'Page',
'error'
);