Skip to content

Commit

Permalink
🐛 fix: Jump icon displayed without matching calls
Browse files Browse the repository at this point in the history
  • Loading branch information
imyuyu committed Nov 27, 2023
1 parent 8b36b58 commit 5cb4304
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ class StatementLineMarkerProvider : SimpleLineMarkerProvider<XmlToken, PsiElemen

val project: Project = from.getProject();

return Optional.of(JavaUtils.findStatement(project, tag));
val elements = JavaUtils.findStatement(project, tag)
if(elements.isEmpty()){
return Optional.empty();
}

return Optional.of(elements);
}

override fun getIcon(): Icon {
Expand Down

0 comments on commit 5cb4304

Please sign in to comment.