Skip to content

Commit

Permalink
Some JREs add .java, some don't. We need ext for clickable text in AS.
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxPaper committed Jan 19, 2024
1 parent 2dc2974 commit 4f73316
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,10 @@ public static String getCompressedStackTrace(
// Used to be [email protected]:lineNumber, but
// AS won't make file clickable without brackets
if (fileName != null) {
sb.append('(').append(fileName).append(".java");
sb.append('(').append(fileName);
if (!fileName.endsWith(".java")) {
sb.append(".java");
}
}
if (showLineNumber) {
int lineNumber = element.getLineNumber();
Expand Down

0 comments on commit 4f73316

Please sign in to comment.