mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
package.json dependency completion: npm command not used on windows. Fixes #108605
This commit is contained in:
@@ -283,7 +283,7 @@ export class PackageJSONContribution implements IJSONContribution {
|
||||
private npmView(pack: string): Promise<ViewPackageInfo | undefined> {
|
||||
return new Promise((resolve, _reject) => {
|
||||
const args = ['view', '--json', pack, 'description', 'dist-tags.latest', 'homepage', 'version'];
|
||||
cp.execFile('npm', args, (error, stdout) => {
|
||||
cp.execFile(process.platform === 'win32' ? 'npm.cmd' : 'npm', args, (error, stdout) => {
|
||||
if (!error) {
|
||||
try {
|
||||
const content = JSON.parse(stdout);
|
||||
|
||||
Reference in New Issue
Block a user