We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c2ffb2 commit 41085cfCopy full SHA for 41085cf
1 file changed
packages/yarnpkg-sdks/sources/sdks/vscode.ts
@@ -180,8 +180,8 @@ export const VSCODE_SDKS: IntegrationSdks = [
180
181
async function getVSCodeVersion() {
182
try {
183
- const command = `code${process.platform === `win32` && `.cmd`} --version`;
184
- const {stdout} = await sdkUtils.execPromise(`${command} --version`, {encoding: `utf8`, shell: `cmd.exe`});
+ const command = `code${process.platform === `win32` ? `.cmd` : ``} --version`;
+ const {stdout} = await sdkUtils.execPromise(command, {encoding: `utf8`});
185
const version = stdout.split(`\n`)[0].trim();
186
return version.split(`.`).map(value => parseInt(value, 10));
187
} catch {
0 commit comments