Skip to content

Added support for Powershell based environments.#891

Open
Carbaz wants to merge 1 commit into
Gruntfuggly:masterfrom
Carbaz:feature/powershell-support
Open

Added support for Powershell based environments.#891
Carbaz wants to merge 1 commit into
Gruntfuggly:masterfrom
Carbaz:feature/powershell-support

Conversation

@Carbaz

@Carbaz Carbaz commented May 15, 2025

Copy link
Copy Markdown

If Vs Code is run with PowerShell as system/session default command line interpreter the ripgrep command fails.

E.g: Changed the ComSpec environment variable to "powershell.exe".

This takes into account the current set CLI and updates the command with the "&" required on Powershell to run quoted commands.

Main issue are the spaces in ripgrep's path and the PS requirement to prefix quoted commands wit an '&'.

So, based on the `COMSPEC` env var it prefixes if required.
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.

1 participant