Find Usages: Copy options used for highlighting (to prevent spoiling of default search scope used in the full usage search)

This commit is contained in:
Alexey Sedunov
2015-07-17 16:41:13 +03:00
parent 87e94aa20b
commit 41aed73ebd
@@ -73,7 +73,7 @@ public abstract class KotlinFindUsagesHandler<T : PsiElement>(psiElement: T,
override fun findReferencesToHighlight(target: PsiElement, searchScope: SearchScope): Collection<PsiReference> {
val results = ArrayList<PsiReference>()
val options = getFindUsagesOptions()
val options = getFindUsagesOptions().clone()
options.searchScope = searchScope
searchReferences(target, object : Processor<UsageInfo> {
override fun process(info: UsageInfo): Boolean {