Skip to content

Commit

Permalink
Fix #202, Switch stubs windows shell error
Browse files Browse the repository at this point in the history
Signed-off-by: paulober <[email protected]>
  • Loading branch information
paulober committed Feb 21, 2024
1 parent f907129 commit 15c0da5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stubs.mts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ export async function installStubsByVersion(

// install stubs with pip vscode user directory
const result = execSync(
`${pip} install ${port}==${version} ` + `--target "${target}" --no-user`
`&"${pip}" install ${port}==${version} ` + `--target "${target}" --no-user`,
process.platform === "win32" ? { shell: "powershell" } : {}
);

// check result
Expand Down

0 comments on commit 15c0da5

Please sign in to comment.