Skip to content

feat: synth triggering in the web explorer#1725

Open
megha-narayanan wants to merge 3 commits into
aws:feat/cdk-explorerfrom
megha-narayanan:feat/explorer-web-synth-triggering
Open

feat: synth triggering in the web explorer#1725
megha-narayanan wants to merge 3 commits into
aws:feat/cdk-explorerfrom
megha-narayanan:feat/explorer-web-synth-triggering

Conversation

@megha-narayanan

@megha-narayanan megha-narayanan commented Jul 10, 2026

Copy link
Copy Markdown
  • Adds manual and auto-synth capabilities to the web explorer, matching the LSP server's synth-on-save behavior
  • Source file watcher (chokidar-backed, debounced, respects cdk.out/node_modules/dotfile excludes) triggers auto-synth when enabled
  • Synth failures broadcast over SSE (synth-status event) and surface in the frontend as a clickable "Synth failed" indicator with a detail modal
  • POST /api/synth for manual synth, GET/POST /api/synth/auto for toggle state
  • Drop-if-in-flight guard prevents concurrent synths (same pattern as the LSP server)
Screenshot 2026-07-10 at 1 03 44 PM Screenshot 2026-07-10 at 1 03 48 PM Screenshot 2026-07-10 at 1 03 56 PM

If you click on "Synth failed" this opens:
Screenshot 2026-07-10 at 1 04 03 PM


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions Bot added the p2 label Jul 10, 2026
@aws-cdk-automation aws-cdk-automation requested a review from a team July 10, 2026 15:26
@megha-narayanan megha-narayanan changed the title feat(cdk-explorer): synth triggering in the web explorer feat: synth triggering in the web explorer Jul 10, 2026
@megha-narayanan megha-narayanan changed the base branch from feat/cdk-lsp to feat/cdk-explorer July 10, 2026 17:30
Watch the app's source files and run an in-process synth when they
change, with a drop-if-in-flight guard mirroring the LSP. Adds
POST /api/synth, GET/POST /api/synth/auto, and server-side auto-synth
state. A synth rewrites cdk.out, which the existing assembly watcher
broadcasts to connected browsers over SSE.
…below header actions

Synth failed and last synth time now sit on the description line,
right-aligned beneath the toggle and button, instead of pushing
the button row sideways when they appear.
@megha-narayanan megha-narayanan force-pushed the feat/explorer-web-synth-triggering branch from 3088cff to 036ee18 Compare July 10, 2026 17:33
@megha-narayanan megha-narayanan marked this pull request as ready for review July 10, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant