diff --git a/plugin/core/devcontainer.js b/plugin/core/devcontainer.js index a46b4d6..a01e7af 100644 --- a/plugin/core/devcontainer.js +++ b/plugin/core/devcontainer.js @@ -68,7 +68,8 @@ async function runCommand(cmd, args, options = {}) { */ export async function checkDevcontainerCli() { try { - const result = await runCommand('which', ['devcontainer']) + const whichCmd = process.platform === 'win32' ? 'where' : 'which' + const result = await runCommand(whichCmd, ['devcontainer']) return result.success } catch { return false