Skip to content

[Feature] Support argument prefix on global command name config #2490

@jeiea

Description

@jeiea

🚀 Feature Request

Support launching React Native debug sessions when the project is executed through a wrapper command (e.g. mise exec).

Reproducible Steps

  1. Configure the project to run commands via mise exec.
  2. In vscode, press F5 to start a React Native debug session.

Repro

Expected Behavior

The application should launch normally via mise and yarn, just as it does when running the same command in a terminal.

Actual Behavior

The debug session fails with the following error in the Debug Console:

An error occurred while launching the application.
'mise exec -- yarn exec -- react-native run-android --no-packager'
An error occurred while executing the command.:
spawn mise exec -- yarn exec -- react-native ENOENT (error code 303)

Root Cause

The React Native VS Code extension appears to treat the entire command string
mise exec -- yarn exec -- react-native ... as a single executable.
As a result, process spawning fails with ENOENT, because only mise is the actual executable and the rest should be treated as arguments.

Proposed Improvement

Allow the debug configuration to specify:

  • a command wrapper (e.g. mise exec --)
  • or a clear separation between executable and arguments

so that React Native projects using tools like mise, asdf, or other environment managers can be debugged without workarounds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions