Caching JDT types. Invalidate on project change

This commit is contained in:
BoykoAlex
2019-03-22 22:32:08 -04:00
parent 436909a344
commit 3e20e7e8d4
4 changed files with 78 additions and 31 deletions

View File

@@ -207,7 +207,7 @@ public class JdtLsProjectCache implements InitializableJavaProjectsService {
IJavaProject newProject = IS_JANDEX_INDEX
? new JavaProject(getFileObserver(), projectUri, classpath,
JdtLsProjectCache.this)
: new JdtLsJavaProject(server.getClient(), projectUri, classpath);
: new JdtLsJavaProject(server.getClient(), projectUri, classpath, JdtLsProjectCache.this);
IJavaProject oldProject = table.put(uri, newProject);
if (oldProject != null) {
notifyChanged(newProject);