We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d5e5e6 commit 4c89a81Copy full SHA for 4c89a81
src/server/typingsInstaller/typingsInstaller.ts
@@ -182,6 +182,10 @@ namespace ts.server.typingsInstaller {
182
}
183
if (npmConfig.devDependencies && npmLock.dependencies) {
184
for (const key in npmConfig.devDependencies) {
185
+ if (!hasProperty(npmLock.dependencies, key)) {
186
+ // if package in package.json but not package-lock.json, skip adding to cache so it is reinstalled on next use
187
+ continue;
188
+ }
189
// key is @types/<package name>
190
const packageName = getBaseFileName(key);
191
if (!packageName) {
0 commit comments