mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show "Current File" scope always (WEB-20644)
This commit is contained in:
+5
-3
@@ -101,10 +101,12 @@ public class PredefinedSearchScopeProviderImpl extends PredefinedSearchScopeProv
|
||||
result.add(module.getModuleScope());
|
||||
}
|
||||
}
|
||||
if (dataContextElement.getContainingFile() != null) {
|
||||
result.add(new LocalSearchScope(dataContextElement, IdeBundle.message("scope.current.file")));
|
||||
}
|
||||
}
|
||||
PsiElement[] currentFileScope = PsiElement.EMPTY_ARRAY;
|
||||
if (dataContextElement != null && dataContextElement.getContainingFile() != null) {
|
||||
currentFileScope = new PsiElement[]{dataContextElement};
|
||||
}
|
||||
result.add(new LocalSearchScope(currentFileScope, IdeBundle.message("scope.current.file")));
|
||||
}
|
||||
|
||||
if (currentSelection) {
|
||||
|
||||
Reference in New Issue
Block a user