mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-191271 Find usages doesn't find usages in JSPs
This commit is contained in:
@@ -31,6 +31,8 @@ public class JavaFilesSearchScope extends GlobalSearchScope {
|
||||
|
||||
@Override
|
||||
public boolean contains(@NotNull VirtualFile file) {
|
||||
if (file.isDirectory())
|
||||
return false;
|
||||
FileViewProvider viewProvider = myPsiManager.findViewProvider(file);
|
||||
return viewProvider != null && viewProvider.getLanguages().contains(JavaLanguage.INSTANCE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user