Skip to content

Commit eb4cebf

Browse files
committed
import Library by qualified name instead of simple name
1 parent a0f3579 commit eb4cebf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/com/millennialmedia/intellibot/psi/ref/RobotFileManager.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@ public static PsiElement findPython(@Nullable String library, @NotNull Project p
8484
addToCache(result, library);
8585
return result;
8686
}
87-
debug(library, "Attemping module search", project);
88-
List<PyFile> results = PyModuleNameIndex.find(library, project, true);
87+
debug(library, "Attempting module search", project);
88+
List<PyFile> results = PyModuleNameIndex.findByQualifiedName(
89+
QualifiedName.fromDottedString(library),
90+
project,
91+
GlobalSearchScope.projectScope(project)
92+
);
8993
if (! results.isEmpty()) {
9094
result = (PsiFile)results.get(0);
9195
addToCache(result, library);

0 commit comments

Comments
 (0)