Some refactorings towards fixing a nasty race condition

See: https://www.pivotaltracker.com/story/show/143694789

This work is not yet complete (everything still works as before, but a race condtion between clearing AST cache and using AST for reconciles remains).
This commit is contained in:
Kris De Volder
2017-04-14 10:41:20 -07:00
parent c520ef833e
commit e0103c1352
13 changed files with 148 additions and 109 deletions

View File

@@ -54,7 +54,7 @@ public class BootJavaLanguageServer extends SimpleLanguageServer {
IReconcileEngine reconcileEngine = new BootJavaReconcileEngine();
documents.onDidChangeContent(params -> {
TextDocument doc = params.getDocument();
validateWith(doc, reconcileEngine);
validateWith(doc.getId(), reconcileEngine);
});
ICompletionEngine bootCompletionEngine = new BootJavaCompletionEngine(javaProjectFinder, indexProvider);