Skip to content

fix: correct workspace comment serialization docs - #10270

Open
Johnkothapalli wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
Johnkothapalli:docs/workspace-comment-serialization
Open

fix: correct workspace comment serialization docs#10270
Johnkothapalli wants to merge 1 commit into
RaspberryPiFoundation:mainfrom
Johnkothapalli:docs/workspace-comment-serialization

Conversation

@Johnkothapalli

@Johnkothapalli Johnkothapalli commented Aug 13, 2026

Copy link
Copy Markdown

The basics

  • I validated my changes

The details

Resolves

Fixes #10266

Proposed Changes

  • document workspace comments as part of Blockly's built-in JSON serialization
  • include workspace comments in the documented deserialization order
  • replace the obsolete workspace-comment custom serializer example with a generic plugin-state example
  • repair the API-reference link for built-in serialization priorities

Reason for Changes

Workspace comments have been serialized by the JSON system since #7927. The existing guide still said users needed to register a custom serializer and used comments as its custom-plugin example, which could lead users to duplicate built-in behavior.

Test Coverage

Documentation-only change.

  • node node_modules/eslint/bin/eslint.js packages/docs/docs/guides/configure/serialization.mdx
  • node node_modules/prettier/bin/prettier.cjs --check packages/docs/docs/guides/configure/serialization.mdx
  • npm run package --workspace=blockly
  • npm run docs --workspace=blockly
  • npm run build --workspace=blockly-docs

The production docs build succeeds. It reports existing site-wide broken-link warnings; the corrected serialization-priorities link is not among them.

Documentation

This PR directly updates the Save and load guide.

Additional Information

The workspace lint script quotes its glob in a way Windows passes literally to ESLint, so the same repository ESLint configuration was run directly against the changed MDX file.

@Johnkothapalli
Johnkothapalli requested a review from a team as a code owner August 13, 2026 20:17
@github-actions github-actions Bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Aug 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome! It looks like this is your first pull request in Blockly, so here are a couple of tips:

  • You can find tips about contributing to Blockly and how to validate your changes on our developer site.
  • We use conventional commits to make versioning the package easier. Make sure your commit message is in the proper format or learn how to fix it.
  • If any of the other checks on this PR fail, you can click on them to learn why. It might be that your change caused a test failure, or that you need to double-check the style guide.
    Thank you for opening this PR! A member of the Blockly team will review it soon.

@zspriggs zspriggs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just a couple of small things to adjust before we merge it.

// etc...
]
"blocks": {},
"myPlugin": {}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some fake data here (it can be the same as what the workspaceComments example previously had) to show that normally there'd be content in this final JSON output?

},
// etc...
]
"blocks": {},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a ... between the curly braces to indicate that there's usually content here in the JSON

@zspriggs
zspriggs removed the request for review from maribethb August 14, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update serialization docs to reflect support for workspace comments

3 participants