Towards batched classpath events

- add parameter to 'addClasspathListener' to request
  batched events.
- Create a single SendClasspathNotificationsJob that
  processes classpath notifications in batches.
This commit is contained in:
Kris De Volder
2019-05-28 10:12:25 -07:00
parent 490c45b4b3
commit 8bffa95742
5 changed files with 174 additions and 116 deletions

View File

@@ -360,7 +360,7 @@ public class STS4LanguageClientImpl extends LanguageClientImpl implements STS4La
@Override
public CompletableFuture<Object> addClasspathListener(ClasspathListenerParams params) {
return CompletableFuture.completedFuture(classpathService.addClasspathListener(params.getCallbackCommandId()));
return CompletableFuture.completedFuture(classpathService.addClasspathListener(params.getCallbackCommandId(), params.isBatched()));
}
@Override