mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[rider] API to show usages without virtual files, relates to RIDER-100324
GitOrigin-RevId: e8a14819f65b4c10ae989c0879b563931bec5238
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d4bc01d050
commit
6ea7e71a61
@@ -291,6 +291,7 @@ public class UsageViewManagerImpl extends UsageViewManager {
|
||||
}
|
||||
|
||||
public static boolean isInScope(@NotNull Usage usage, @NotNull SearchScope searchScope) {
|
||||
if (searchScope instanceof AcceptEveryUsageScope) return true;
|
||||
return ReadAction.compute(() -> {
|
||||
VirtualFile file;
|
||||
if (usage instanceof PsiElementUsage psiElementUsage) {
|
||||
@@ -322,4 +323,9 @@ public class UsageViewManagerImpl extends UsageViewManager {
|
||||
public static @Nls(capitalization = Sentence) @NotNull String outOfScopeMessage(int nUsages, @NotNull SearchScope searchScope) {
|
||||
return UsageViewBundle.message("0.usages.are.out.of.scope", nUsages, searchScope.getDisplayName());
|
||||
}
|
||||
|
||||
/**
|
||||
* There are usages which have not virtual files, so we do not want to filter them out in some scopes
|
||||
*/
|
||||
public interface AcceptEveryUsageScope { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user