We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee0a0f commit 3f3c52cCopy full SHA for 3f3c52c
src/main/java/com/redhat/devtools/intellij/quarkus/lsp4ij/LSPIJUtils.java
@@ -108,7 +108,7 @@ public static Document getDocument(VirtualFile docFile) {
108
109
public static Module getProject(VirtualFile file) {
110
for (Project project : ProjectManager.getInstance().getOpenProjects()) {
111
- Module module = ProjectFileIndex.getInstance(project).getModuleForFile(file);
+ Module module = ReadAction.compute(() -> ProjectFileIndex.getInstance(project).getModuleForFile(file));
112
if (module != null) {
113
return module;
114
}
0 commit comments