From 1eab7454312e33e0c82206a4de0e5001c471d8e8 Mon Sep 17 00:00:00 2001 From: SIDLAD Date: Sun, 8 Nov 2026 10:39:42 +0530 Subject: [PATCH] fix: quote pixi executable path when spawning with shell On Windows, spawning pixi with shell: true failed when the executable path contained a space (e.g. C:\Users\First Last\.pixi\bin\pixi.exe), because only the arguments were quoted. Quote the executable with the existing quoteStringIfNecessary helper. Fixes #8 Co-Authored-By: Claude Opus 5.5 --- src/pixi/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pixi/utils.ts b/src/pixi/utils.ts index f49d12e..29f4aeb 100644 --- a/src/pixi/utils.ts +++ b/src/pixi/utils.ts @@ -4,7 +4,7 @@ import { CancellationError, CancellationToken, ThemeIcon, Uri, window, workspace import which from 'which'; import { createDeferred } from '../common/deferred'; -import { quoteArgs } from '../common/execUtils'; +import { quoteArgs, quoteStringIfNecessary } from '../common/execUtils'; import { findPythonExecutable } from '../common/findPython'; import { traceError, traceInfo, traceVerbose } from '../common/logging'; import { getWorkspacePersistentState } from '../common/persistentState'; @@ -48,7 +48,7 @@ async function _runPixi( ): Promise { const deferred = createDeferred(); args = quoteArgs(args); - const proc = ch.spawn(pixi, args, { shell: true, ...options }); + const proc = ch.spawn(quoteStringIfNecessary(pixi), args, { shell: true, ...options }); const cancelDisposable = token?.onCancellationRequested(() => { proc.kill();