mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[usages] look for usages of files even if their names start with .
This commit is contained in:
@@ -32,7 +32,8 @@ public class CachesBasedRefSearcher extends QueryExecutorBase<PsiReference, Refe
|
||||
if (refElement instanceof PsiFileSystemItem && !(refElement instanceof SyntheticFileSystemItem)) {
|
||||
final VirtualFile vFile = ((PsiFileSystemItem)refElement).getVirtualFile();
|
||||
if (vFile != null) {
|
||||
text = vFile.getNameWithoutExtension();
|
||||
String fileNameWithoutExtension = vFile.getNameWithoutExtension();
|
||||
text = fileNameWithoutExtension.isEmpty() ? vFile.getName() : fileNameWithoutExtension;
|
||||
}
|
||||
// We must not look for file references with the file language's case-sensitivity,
|
||||
// since case-sensitivity of the references themselves depends either on file system
|
||||
|
||||
Reference in New Issue
Block a user