Skip to content

feat(run): stop the flutter process when exiting nvim - #554

Merged
sidlatau merged 1 commit into
mainfrom
feat/stop-run-on-exit
Sep 28, 2026
Merged

sidlatau merged 1 commit into
mainfrom
feat/stop-run-on-exit

Conversation

@sidlatau

Copy link
Copy Markdown
Collaborator
  • On VimLeavePre, send SIGTERM to the CLI runner's flutter run job and wait up to 3s for it to exit. The flutter tool ignores stdin closing, so before this it and the app kept running after nvim quit.
  • SIGTERM runs the tool's own cleanup: a run session stops the app, an attach session only detaches.
  • The DAP runner needs no change; nvim-dap's ExitPre hook already terminates its sessions.

Closes #401

Send SIGTERM to the CLI runner's `flutter run` job on VimLeavePre so the
tool stops the app (or detaches, when attached) instead of lingering.
The DAP runner is already handled by nvim-dap's ExitPre hook.

Closes #401
@sidlatau
sidlatau merged commit 8d11074 into main Sep 28, 2026
7 checks passed
@sidlatau
sidlatau deleted the feat/stop-run-on-exit branch September 28, 2026 06:59
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.

[Feature Request] Kill attached flutter processes on nvim exit

1 participant