Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in program viewer when trying to display new value type #3585

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Jun 14, 2024

fix Azure/typespec-azure#1016

Fix crash in the program viewer

When we were trying to display a value(only case right now is using a default value as property) it would blow up

Add error boundary to only crash the output view and ability to retry so the entire UI is not lost

image

@azure-sdk
Copy link
Collaborator

azure-sdk commented Jun 14, 2024

All changed packages have been documented.

  • @typespec/html-program-viewer
  • @typespec/playground
Show changes

@typespec/playground - feature ✏️

Add error recovery for viewer that crash

@typespec/html-program-viewer - fix ✏️

Fix crash in program viewer when trying to display new value type

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3585/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3585/

@timotheeguerin timotheeguerin changed the title Add error boundary Fix crash in program viewer when trying to display new value type Jun 14, 2024
@timotheeguerin timotheeguerin marked this pull request as ready for review June 14, 2024 16:11
@timotheeguerin timotheeguerin added this pull request to the merge queue Jun 14, 2024
Merged via the queue into microsoft:main with commit 216f423 Jun 14, 2024
21 checks passed
@timotheeguerin timotheeguerin deleted the fix/playground-program-viewer-crash branch June 14, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: type graph view crash for azure playground
3 participants