Skip to content

[Feature]: Launch palette runs with argv instead of PowerShell text #298

Open

Description

Is your feature request related to a problem? Please describe.

The palette run path builds an argv array, escapes it into a PowerShell command string, and sends it through terminal.sendText. That adds a second parsing layer and requires the extension to keep PowerShell quoting rules correct for workspace-controlled file and solution names. PR #283 fixed the known Unicode smart-quote injection case, but the shell boundary remains unnecessary complexity.

Describe the solution you'd like

Run winapp through an argv-preserving API such as vscode.ProcessExecution or a spawned process, following the existing runWinappTool/debug-adapter patterns. Preserve the visible user experience by streaming output to a terminal or task output and keeping cancellation/error behavior explicit.

Add regression coverage for spaces, ASCII quotes, U+2018–U+201B smart quotes, semicolons, and other PowerShell metacharacters in discovered project paths and --project values.

Additional context

Follow-up from PR #283 review. The current escaping fix closes the reproduced vulnerability, so this is a broader reliability/architecture improvement across the shared terminal command path.

Activity

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions