Skip to content

Commit

Permalink
♻️ refactor: change to soft Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
imyuyu committed Jun 11, 2024
1 parent d4cdef6 commit cac03ba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.intellij.psi.search.GlobalSearchScope

class SQLToyTranslateReference(element: PsiElement) :
PsiReferenceBase<PsiElement>(
element, ElementManipulators.getValueTextRange(element)
element, ElementManipulators.getValueTextRange(element),true
), EmptyResolveMessageProvider, HighlightedReference {

override fun resolve(): PsiElement? {
Expand Down Expand Up @@ -49,4 +49,7 @@ class SQLToyTranslateReference(element: PsiElement) :
return "Cannot resolve translate '${value}'"
}

override fun isHighlightedWhenSoft(): Boolean {
return true
}
}

0 comments on commit cac03ba

Please sign in to comment.