Do not search for text occurrences if this option is switched off
This commit is contained in:
@@ -52,9 +52,11 @@ abstract class KotlinFindUsagesHandler<T : PsiElement>(psiElement: T,
|
||||
}
|
||||
|
||||
protected fun searchTextOccurrences(element: PsiElement, processor: Processor<UsageInfo>, options: FindUsagesOptions): Boolean {
|
||||
if (!options.isSearchForTextOccurrences) return false
|
||||
|
||||
val scope = options.searchScope
|
||||
|
||||
if (options.isSearchForTextOccurrences && scope is GlobalSearchScope) {
|
||||
if (scope is GlobalSearchScope) {
|
||||
if (options.fastTrack == null) {
|
||||
return processUsagesInText(element, processor, scope)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user