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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user