Skip to content

Fix debug adapter config bugs and add missing config options#66

Open
nelsoncampos-cloudwalk wants to merge 1 commit intozed-extensions:mainfrom
nelsoncampos-cloudwalk:fix/hot-reload-and-rerun-session
Open

Fix debug adapter config bugs and add missing config options#66
nelsoncampos-cloudwalk wants to merge 1 commit intozed-extensions:mainfrom
nelsoncampos-cloudwalk:fix/hot-reload-and-rerun-session

Conversation

@nelsoncampos-cloudwalk
Copy link
Copy Markdown

@nelsoncampos-cloudwalk nelsoncampos-cloudwalk commented Mar 11, 2026

Fix several bugs in the debug adapter configuration and add missing config options.

Bug fixes:

  • type field in DAP config was set to the tool binary name (flutter.bat on Windows) instead of "flutter"/"dart", breaking the debug adapter on Windows
  • stopOnEntry was hardcoded to false, ignoring the user's setting
  • flutterMode was hardcoded to "debug" — now reads from user config (supports debug, profile, release, test)
  • vmServiceUri: null was always included in the config even for launch requests, now only included when provided
  • fvm tasks had "command": "fvm flutter" (space in command), fixed to "command": "fvm" with "flutter" as first arg
  • Typo: "Weather" → "Whether" in schema

New config options:

  • toolArgs — pass arguments to the Flutter/Dart tool (e.g. --flavor, -d chrome)
  • env — environment variables for the debug adapter
  • flutterMode — configurable Flutter mode
  • sendLogsToClient: true — enables debug adapter log forwarding to Zed

@cla-bot cla-bot bot added the cla-signed label Mar 11, 2026
- Fix `type` field sending "flutter.bat" instead of "flutter" on Windows
- Fix `stopOnEntry` being hardcoded to false, now reads user config
- Fix `flutterMode` being hardcoded to "debug", now configurable
- Fix `vmServiceUri: null` always sent in config, now only when provided
- Fix `fvm` task commands using invalid "fvm flutter" as command
- Add `toolArgs`, `env`, and `flutterMode` config support
- Add `sendLogsToClient: true` for debug log forwarding
- Fix typo "Weather" -> "Whether" in schema

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nelsoncampos-cloudwalk nelsoncampos-cloudwalk force-pushed the fix/hot-reload-and-rerun-session branch from 4f7cf5e to 1a2e06b Compare March 11, 2026 02:58
@nelsoncampos-cloudwalk nelsoncampos-cloudwalk changed the title Fix debug adapter config bugs and add hot reload tasks Fix debug adapter config bugs and add missing config options Mar 11, 2026
Copy link
Copy Markdown
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, could you please look into the CI issue?

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.

2 participants