Skip to content

fix(dap): register adapter and configurations at startup - #550

Merged
sidlatau merged 1 commit into
mainfrom
fix/dap-continue-without-run
Sep 26, 2026
Merged

sidlatau merged 1 commit into
mainfrom
fix/dap-continue-without-run

Conversation

@sidlatau

Copy link
Copy Markdown
Collaborator

Closes #475

  • Register the dart adapter and default configurations when the plugin starts, so require("dap").continue() works before :FlutterRun/:FlutterDebug. An adapter or configurations the user already defined are left untouched; debugger.register_configurations is still called.
  • Dart sessions started outside flutter-tools are routed through the debugger runner (dap.listeners.on_session), so log output, DevTools/VM service and reload/restart work for them.
  • Default configurations now set cwd to the project root.
  • Tests now load nvim-dap.

- `require("dap").continue()` works without running `:FlutterRun` first; user-defined adapter/configurations are kept
- Dart sessions started outside flutter-tools get log output and reload/restart commands
- Default configurations set `cwd` to the project root
@sidlatau
sidlatau merged commit 294fa80 into main Sep 26, 2026
7 checks passed
@sidlatau
sidlatau deleted the fix/dap-continue-without-run branch September 26, 2026 19:10
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] Cannot use require('dap').continue() before running either FlutterRun or FlutterDebug

1 participant