Skip to content

Add hot reload and hot restart custom actions#72

Open
paulocagol wants to merge 1 commit intozed-extensions:mainfrom
paulocagol:hot-reload-custom-actions
Open

Add hot reload and hot restart custom actions#72
paulocagol wants to merge 1 commit intozed-extensions:mainfrom
paulocagol:hot-reload-custom-actions

Conversation

@paulocagol
Copy link
Copy Markdown

Summary

  • Add hot reload and hot restart buttons to the debugger toolbar when debugging
    Flutter/Dart applications
  • Hot reload triggers automatically on file save (trigger: Both)
  • Hot restart is toolbar-only (trigger: Toolbar)
  • Fix device selection by passing -d <device_id> via toolArgs

Depends on: zed-industries/zed#51873 (custom debug actions Extension API).
Both PRs are intended to be reviewed and merged together.

Test plan

  • Start a Flutter debug session — "Hot Reload" (🔥) and "Hot Restart" (🔄)
    buttons appear in toolbar
  • Click Hot Reload button — app reloads preserving state
  • Click Hot Restart button — app restarts from scratch
  • Save a .dart file — hot reload triggers automatically
  • Verify device_id is respected (e.g., device_id: "macos" launches on macOS)

Release Notes:

  • Added Flutter hot reload and hot restart support to the Dart debug extension

Implement `get_dap_custom_actions` to expose Flutter hot reload and hot
restart as custom debug actions. Hot reload triggers both on toolbar click
and on file save; hot restart is toolbar-only.

Also fix device selection by passing `-d <device_id>` via `toolArgs` in
the launch configuration.

Depends on zed-industries/zed#51873 (custom debug actions Extension API).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 18, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @paulocagol on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@paulocagol
Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 18, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @paulocagol on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 18, 2026

The cla-bot has been summoned, and re-checked this pull request!

@paulocagol
Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Mar 18, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot bot commented Mar 18, 2026

The cla-bot has been summoned, and re-checked this pull request!

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.

1 participant