From 63205c7b5bd33002e2b7ced27371a806d11595ec Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Mon, 22 May 2023 18:05:23 +0200 Subject: [PATCH] X will open editor on current working directory as a fallback --- .../java/io/quarkus/deployment/console/ConsoleProcessor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/console/ConsoleProcessor.java b/core/deployment/src/main/java/io/quarkus/deployment/console/ConsoleProcessor.java index ee2838f948177..77ebdfd3a57ac 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/console/ConsoleProcessor.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/console/ConsoleProcessor.java @@ -142,7 +142,7 @@ public void accept(Throwable throwable, StackTraceElement stackTraceElement) { } exceptionsConsoleContext.reset( - new ConsoleCommand('x', "Open last exception in IDE", new ConsoleCommand.HelpState(new Supplier() { + new ConsoleCommand('x', "Open last exception (or project) in IDE", new ConsoleCommand.HelpState(new Supplier() { @Override public String get() { return MessageFormat.RED; @@ -161,6 +161,7 @@ public String get() { public void run() { StackTraceElement throwable = lastUserCode.get(); if (throwable == null) { + launchInIDE(ideSupport.getIde(), List.of(".")); return; } String className = throwable.getClassName();