Skip to content

Commit

Permalink
Dont show auto imports for invalid elements (#4008)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Kazakova authored Mar 27, 2023
1 parent 1b6e88f commit a8158bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal class AddImportIntention(
}

override fun showHint(editor: Editor): Boolean {
if (element.reference?.resolve() != null) {
if (element.reference?.resolve() != null && element.isValid) {
return false
}

Expand Down

0 comments on commit a8158bb

Please sign in to comment.