From 9a29739f8a4b3fe7b8a7f07a964e1c3aa8804cd7 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Wed, 19 Jan 2022 15:16:57 +0100 Subject: [PATCH] When syntax for opening to a line is unknown, just open the file Looks like all the IDEs have different syntaxes for opening a file to a given line so let's not suppose it will just be file:line as it works for none of them so chances it will work for a random one are quite thin. --- .../src/main/java/io/quarkus/deployment/ide/Ide.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/ide/Ide.java b/core/deployment/src/main/java/io/quarkus/deployment/ide/Ide.java index 65d0fc295a32a..50959a7d7e75e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/ide/Ide.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/ide/Ide.java @@ -80,8 +80,11 @@ public List createFileOpeningArgs(String fileName, String line) { return Collections.singletonList(fileName); } + // we don't know the syntax for opening a file at a given line + // so we just open the file if (lineNumberArgs.isEmpty()) { - return Collections.singletonList(fileName + ":" + line); + log.debug("No syntax provided for opening the file at a given line for this IDE so we will just open the file"); + return Collections.singletonList(fileName); } return lineNumberArgs.stream()