Skip to content

Commit

Permalink
X will open editor on current working directory as a fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen committed May 22, 2023
1 parent 4eb4c63 commit 63205c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>() {
new ConsoleCommand('x', "Open last exception (or project) in IDE", new ConsoleCommand.HelpState(new Supplier<String>() {
@Override
public String get() {
return MessageFormat.RED;
Expand All @@ -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();
Expand Down

0 comments on commit 63205c7

Please sign in to comment.