Skip to content

Fix TypeScript diagnostic serialization - #6

Merged
IMax153 merged 3 commits into
mainfrom
fix/clone-safe-typescript-diagnostics
Aug 20, 2026
Merged

Fix TypeScript diagnostic serialization#6
IMax153 merged 3 commits into
mainfrom
fix/clone-safe-typescript-diagnostics

Conversation

@IMax153

@IMax153 IMax153 commented Aug 17, 2026

Copy link
Copy Markdown
Member

Summary

  • serialize TypeScript diagnostics into Monaco’s public worker-safe shape
  • recursively sanitize message chains and related diagnostics
  • add regression coverage for TypeScript’s non-cloneable repopulateInfo callback
  • add a patch changeset

TypeScript can attach private callback properties to diagnostic message chains. The worker previously preserved those properties through shallow copies, causing postMessage to throw DataCloneError.

Verification

  • npm run build
  • npm test (86 tests passed)

@IMax153
IMax153 merged commit d3a8bde into main Aug 20, 2026
1 check passed
@IMax153
IMax153 deleted the fix/clone-safe-typescript-diagnostics branch August 20, 2026 19:17
@github-actions github-actions Bot mentioned this pull request Aug 20, 2026
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.

1 participant