Skip to content

Commit 6a9fe1d

Browse files
Give ResponseStore for codeactions a minimum history size of 8
1 parent 161815b commit 6a9fe1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/CodeActionHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
public class CodeActionHandler {
8080
public static final ResponseStore<Either<ChangeCorrectionProposalCore, CodeActionProposal>> codeActionStore
81-
= new ResponseStore<>(ForkJoinPool.commonPool().getParallelism());
81+
= new ResponseStore<>(Math.max(ForkJoinPool.commonPool().getParallelism(), 8));
8282
public static final String COMMAND_ID_APPLY_EDIT = "java.apply.workspaceEdit";
8383

8484
public static CodeActionOptions createOptions(PreferenceManager preferenceManager) {

0 commit comments

Comments
 (0)