Skip to content

Commit

Permalink
Fix opening in IDE when more than IDE is running
Browse files Browse the repository at this point in the history
Fixes: #23002
  • Loading branch information
geoand committed Jan 27, 2023
1 parent 890f7a8 commit 00c38a0
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 00c38a0

Please sign in to comment.