From 23f23d67d1bf7d664fee8b341578601e12fb8001 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 27 Jan 2023 11:49:48 +0200 Subject: [PATCH] Fix opening in IDE when more than IDE is running Fixes: #23002 Co-authored-by: George Gastaldi --- .../src/main/java/io/quarkus/deployment/ide/IdeProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java index 56903f4840665..be6b4ed2b63de 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ide/IdeProcessor.java @@ -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(); } }