From ed52590ae37ee581982e06043e9da18d9b8d60dc Mon Sep 17 00:00:00 2001 From: Akash Yadav Date: Sun, 12 Nov 2023 00:05:24 +0530 Subject: [PATCH] fix(lsp/java): do not create SourceFileManager for root project (fixes #1396) --- .../java/com/itsaky/androidide/lsp/java/JavaLanguageServer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp/java/src/main/java/com/itsaky/androidide/lsp/java/JavaLanguageServer.kt b/lsp/java/src/main/java/com/itsaky/androidide/lsp/java/JavaLanguageServer.kt index 6bbdb3eb1a..e0cc5e8e04 100644 --- a/lsp/java/src/main/java/com/itsaky/androidide/lsp/java/JavaLanguageServer.kt +++ b/lsp/java/src/main/java/com/itsaky/androidide/lsp/java/JavaLanguageServer.kt @@ -152,7 +152,7 @@ class JavaLanguageServer : ILanguageServer { // Cache classpath locations for (subModule in project.subProjects) { - if (subModule !is ModuleProject) { + if (subModule !is ModuleProject || subModule.path == project.rootProject.path) { continue } SourceFileManager.forModule(subModule)