Skip to content

Add startDart to public api #5601

Closed
Closed

Description

@schultek

Add an additional startDart method to the new public api that just returns the SpawnedProcess immediately after starting it (so not piping it to an OutputChannel and not waiting until it completes).

I was previously using safeToolSpawn directly and not going through runCommandInFolder.

For starting the Jaspr debug server, I need to run dart, but manage the process myself, including listening to live stdout, writing to stdin, and manage its lifespan (close event / killing it) because its a long running process. For these reasons I can't use the current runDart api. schultek/jaspr#482

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Jul 23, 2025
  2. added this to the v3.116.0 milestone on Jul 24, 2025
  3. added
    in apiRelates to the API exported by the Dart-Code extension for use by other extensions.
    on Jul 24, 2025
  4. DanTup commented on Jul 24, 2025

    @DanTup
    Member

    @schultek I've pushed a new pre-release version v3.115.20250724 that includes 93dfdbb. Please take a look and let me know if it works for what you need.

  5. schultek commented on Jul 24, 2025

    @schultek
    Author

    Thanks, that works great

  6. added a commit that references this issue on Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in apiRelates to the API exported by the Dart-Code extension for use by other extensions.is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions