One project reconcile thread instead of 5. Typo fix.

This commit is contained in:
aboyko
2023-01-11 19:10:38 -05:00
parent 6d2c2bfa7f
commit b39c38c7f0
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ public class BootLanguageServerInitializer implements InitializingBean {
private CompositeLanguageServerComponents components;
private VscodeCompletionEngineAdapter completionEngineAdapter;
private IJavaProjectReconcileEngine projectReconciler;
private Scheduler projectReconcileScheduler = Schedulers.newBoundedElastic(5, Integer.MAX_VALUE, "Project-Reconciler", 10);
private Scheduler projectReconcileScheduler = Schedulers.newBoundedElastic(1, Integer.MAX_VALUE, "Project-Reconciler", 10);
private Map<URI, Disposable> projectReconcileRequests = new ConcurrentHashMap<>();
private static final Logger log = LoggerFactory.getLogger(BootLanguageServerInitializer.class);

View File

@@ -266,7 +266,7 @@ public class RewriteReconciler implements JavaReconciler {
* If exception occurs during parsing inputs the list of inputs would become shorter than the list of corresponding documents
*/
for (int j = 0, k = 0; j < batchList.size(); j++) {
for (int j = 0, k = 0; j < batchList.size() && k < cus.size(); j++) {
final IDocument doc = batchList.get(j);
List<ReconcileProblem> problems = new ArrayList<>();
CompilationUnit cu = cus.get(k);