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: quarkusio#23002

Co-authored-by: George Gastaldi <gegastaldi@gmail.com>
  • Loading branch information
geoand and gastaldi committed Jan 27, 2023
1 parent 890f7a8 commit 23f23d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public EffectiveIdeBuildItem effectiveIde(LaunchModeBuildItem launchModeBuildIte
}
if (matches.size() == 1) {
result = matches.get(0);
} else if (matches.size() == 0 && runningIdes.size() > 0) {
} else if (matches.size() > 1 || runningIdes.size() > 0) {
result = runningIdes.iterator().next();
}
}
Expand Down

0 comments on commit 23f23d6

Please sign in to comment.