Skip to content

Retain emitter query param when a playground sample is selected - #10455

Merged
JoshLove-msft merged 4 commits into
mainfrom
copilot/fix-emitter-query-param
Jun 3, 2026
Merged

Retain emitter query param when a playground sample is selected#10455
JoshLove-msft merged 4 commits into
mainfrom
copilot/fix-emitter-query-param

Conversation

Copilot AI commented Apr 22, 2026

Copy link
Copy Markdown
Contributor
  • Identify root cause in packages/playground/src/react/standalone.tsx where emitter was being explicitly cleared when a sampleName was set
  • Remove emitter: undefined from the save logic so the emitter query param is retained alongside ?sample=...
  • Add changelog entry under .chronus/changes
  • Apply prettier formatting

Copilot AI changed the title [WIP] Fix emitter query parameter not saved with pre-populated samples Retain emitter query param when a playground sample is selected Apr 22, 2026
Copilot AI requested a review from JoshLove-msft April 22, 2026 17:53
@JoshLove-msft
JoshLove-msft marked this pull request as ready for review April 22, 2026 23:02
@JoshLove-msft
JoshLove-msft enabled auto-merge April 22, 2026 23:02
@azure-sdk

Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@pkg-pr-new

pkg-pr-new Bot commented Apr 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: df5432c

@JoshLove-msft

Copy link
Copy Markdown
Contributor

@copilot run prettier

Agent-Logs-Url: https://github.com/microsoft/typespec/sessions/19ad674f-5550-4aa3-babd-064ffe985b7d

Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>

Copilot AI commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

@copilot run prettier

Done in 74fda8f.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the stale Mark a PR that hasn't been recently updated and will be closed. label May 25, 2026
@markcowl

markcowl commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@JoshLove-msft Can you resolve the failure before this is auto-closed?

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/playground
Show changes

@typespec/playground - fix ✏️

Retain the emitter query parameter in the URL when a sample is selected

@JoshLove-msft
JoshLove-msft added this pull request to the merge queue Jun 3, 2026
Merged via the queue into main with commit f457cdc Jun 3, 2026
29 checks passed
@JoshLove-msft
JoshLove-msft deleted the copilot/fix-emitter-query-param branch June 3, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Mark a PR that hasn't been recently updated and will be closed. ui:playground

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emitter query parameter is not saved when using pre-populated samples

5 participants