Check for classpath change is back

Back to complete the revert of including tracking output folder contents
into classpath changed event
This commit is contained in:
aboyko
2023-07-28 14:23:30 -04:00
parent d186706676
commit e21343ac83

View File

@@ -360,6 +360,10 @@ public class JdtLsProjectCache implements InitializableJavaProjectsService, Serv
URI projectUri = new URI(uri);
ClasspathData classpath = new ClasspathData(event.name, event.classpath.getEntries());
IJavaProject oldProject = table.get(uri);
if (oldProject != null && classpath.equals(oldProject.getClasspath())) {
// nothing has changed
return;
}
IProjectBuild projectBuild = from(event.projectBuild);
IJavaProject newProject = IS_JANDEX_INDEX
? new JavaProject(getFileObserver(), projectUri, classpath,