Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugin/core/devcontainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down