Skip to content

Commit

Permalink
fix: corrected deprecated usage of ModuleLister.moduleAdded (#732)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Mar 12, 2024
1 parent dc2c955 commit f6109f5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,14 @@ private void restoreComponentFeatureProcesses(Odo odo) {
}

@Override
public void moduleAdded(@NotNull Project project, @NotNull Module module) {
addContext(getOdo().getNow(null), ProjectUtils.getModuleRoot(module));
public void modulesAdded(@NotNull Project project, @NotNull List<? extends Module> modules) {
Odo odo = getOdo().getNow(null);
if (odo == null) {
return;
}
modules.forEach(module ->
addContext(odo, ProjectUtils.getModuleRoot(module))
);
}

@Override
Expand Down

0 comments on commit f6109f5

Please sign in to comment.