This commit is contained in:
Joao Moreno 2019-01-28 14:22:36 +01:00
parent 1c88901938
commit 94d3d83934

View file

@ -616,6 +616,12 @@ export function validateManifest(manifest: Manifest): Manifest {
}
});
Object.keys((manifest.dependencies || {})).forEach(dep => {
if (dep === 'vscode') {
throw new Error(`You should not depend on 'vscode' in your 'dependencies'. Did you mean to add it to 'devDependencies'?`);
}
});
return manifest;
}