From ce20bc71921b440eb18615064e93878ad08852c0 Mon Sep 17 00:00:00 2001 From: mmews Date: Mon, 8 Jan 2024 14:15:53 +0100 Subject: [PATCH] fix bug in node_modules identification --- .../src/org/eclipse/n4js/utils/ProjectDiscoveryHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/org.eclipse.n4js/src/org/eclipse/n4js/utils/ProjectDiscoveryHelper.java b/plugins/org.eclipse.n4js/src/org/eclipse/n4js/utils/ProjectDiscoveryHelper.java index f627ee01ed..b35af93394 100644 --- a/plugins/org.eclipse.n4js/src/org/eclipse/n4js/utils/ProjectDiscoveryHelper.java +++ b/plugins/org.eclipse.n4js/src/org/eclipse/n4js/utils/ProjectDiscoveryHelper.java @@ -431,7 +431,6 @@ private Set collectNecessaryDependencies(Set allProjectDirs, Map allProjectDirs, Path projectDir, Map pdCache, Set dependencies) { - NodeModulesFolder nodeModulesFolder = nodeModulesDiscoveryHelper.getNodeModulesFolder(projectDir, pdCache); LinkedHashSet workList = new LinkedHashSet<>(); workList.add(projectDir); while (!workList.isEmpty()) { @@ -439,6 +438,7 @@ private void collectProjectDependencies(Set allProjectDirs, Path projectDi Path nextProject = iterator.next(); iterator.remove(); + NodeModulesFolder nodeModulesFolder = nodeModulesDiscoveryHelper.getNodeModulesFolder(nextProject, pdCache); findDependencies(allProjectDirs, nextProject, nodeModulesFolder, pdCache, workList, dependencies); } }