Skip to content

docs(playground): Add JSDoc for public APIs [skip chg] - #12231

Merged
Timothee Guerin (timotheeguerin) merged 6 commits into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-playground-host
Oct 16, 2026
Merged

Timothee Guerin (timotheeguerin) merged 6 commits into
microsoft:mainfrom
timotheeguerin:docs/jsdoc-playground-host

Conversation

@timotheeguerin

@timotheeguerin Timothee Guerin (timotheeguerin) commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Embedding the playground requires contracts for hosts, storage, build integration, editor state, and output viewers that are currently scattered or missing.

Document the public playground APIs together, including defaults, state transitions, output identifiers, and YAML-preservation limitations. Existing editor and viewer behavior is unchanged.

Consolidates 12234, 12238.

Tracked in #12228.

@pkg-pr-new

pkg-pr-new Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/playground@12231

commit: a90b089

@azure-sdk-automation

azure-sdk-automation Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Copilot AI 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.

🟢 Approval recommended

The documentation matches the reviewed implementations, with no runtime changes or unresolved findings.

0 open findings

What changed in this PR

Documents playground integration APIs as part of #12228, without changing public signatures or runtime behavior.

Changes:

  • Clarifies browser-host loading, deferred libraries, and Monaco setup.
  • Documents URL persistence and falsy-value handling.
  • Explains sample loading, Vite configuration, and manifest substitution.
File Description
packages/​playground/​src/​vite/​types.ts Documents build-time and runtime configuration.
packages/​playground/​src/​vite/​index.ts Explains generated Vite configuration.
packages/​playground/​src/​types.ts Documents samples, library metadata, and browser hosts.
packages/​playground/​src/​tooling/​types.ts Clarifies sample metadata inputs.
packages/​playground/​src/​tooling/​index.ts Documents sample generation and asynchronous failures.
packages/​playground/​src/​state-storage.ts Explains URL serialization and persistence behavior.
packages/​playground/​src/​services.ts Documents Monaco registration lifecycle.
packages/​playground/​src/​monaco-worker.ts Explains worker selection and global setup.
packages/​playground/​src/​manifest.ts Clarifies manifest replacement and fallback behavior.
packages/​playground/​src/​browser-host.ts Documents library loading and import failures.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI balanced review requested due to automatic review settings October 16, 2026 14:12
@timotheeguerin Timothee Guerin (timotheeguerin) changed the title docs(playground): Add JSDoc for host and build integration APIs [skip chg] docs(playground): Add JSDoc for public APIs [skip chg] Oct 16, 2026

Copilot AI 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.

🟢 Approval recommended

The changes are documentation-only, with no unresolved correctness issues or changes to runtime behavior or public signatures.

0 open findings

🧠 Review effort: Balanced

@timotheeguerin
Timothee Guerin (timotheeguerin) merged commit 4802e7c into microsoft:main Oct 16, 2026
31 of 33 checks passed
@timotheeguerin
Timothee Guerin (timotheeguerin) deleted the docs/jsdoc-playground-host branch October 16, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants