Skip to content

Commit

Permalink
Merge pull request #30653 from geoand/#23002
Browse files Browse the repository at this point in the history
Fix opening in IDE when more than IDE is running
  • Loading branch information
geoand authored Jan 27, 2023
2 parents 1513383 + 00c38a0 commit e80745f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ public EffectiveIdeBuildItem effectiveIde(LaunchModeBuildItem launchModeBuildIte
}
}
}
if (matches.size() == 1) {
result = matches.get(0);
} else if (matches.size() == 0 && runningIdes.size() > 0) {
if ((matches.size() == 0 && runningIdes.size() > 0)) {
result = runningIdes.iterator().next();
} else if (matches.size() >= 1) {
result = matches.get(0);
}
}
}
Expand Down

0 comments on commit e80745f

Please sign in to comment.