Add warning when non-empty scope without project is used for IDEVirtualFileFinder
This commit is contained in:
@@ -42,6 +42,10 @@ public final class IDEVirtualFileFinder extends VirtualFileKotlinClassFinder imp
|
||||
public IDEVirtualFileFinder(@NotNull Project project, @NotNull GlobalSearchScope scope) {
|
||||
this.project = project;
|
||||
this.scope = scope;
|
||||
|
||||
if (scope != GlobalSearchScope.EMPTY_SCOPE && scope.getProject() == null) {
|
||||
LOG.warn("Scope with null project " + scope);
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user