Commit 9e147ef
committed
fix: increase LSP initialize timeout for JDTLS and KotlinLS
JDTLS (Eclipse JDT Language Server) and KotlinLS are JVM-based
language servers that must perform Gradle project sync and workspace
indexing during LSP initialize. For real-world projects this routinely
takes 60-180 seconds, well above the default 45 s timeout.
Add an optional initializeTimeout field to the LSP server Handle
interface so built-in servers can declare their timeout needs. Use it
in the client with the existing 45 s constant as the default.
Set 180 s for JDTLS and KotlinLS, both of which run on the JVM and
trigger Gradle sync during initialization.
Closes #239821 parent ce89bcb commit 9e147ef
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
1290 | 1292 | | |
1291 | 1293 | | |
1292 | 1294 | | |
| 1295 | + | |
1293 | 1296 | | |
1294 | 1297 | | |
1295 | 1298 | | |
| |||
1389 | 1392 | | |
1390 | 1393 | | |
1391 | 1394 | | |
| 1395 | + | |
1392 | 1396 | | |
1393 | 1397 | | |
1394 | 1398 | | |
| |||
0 commit comments