[PR #6997] feat: Add configurable lsp timeout #12195

Open
opened 2026-02-16 18:17:07 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6997

State: open
Merged: No


This is a proposal to allow timeouts to be set for LSPs at the specific server/LSP levels. Currently, there is a default timeout of 45 seconds, which is sometimes not long enough. As one example, in the kotlin-ls LSP, some projects are larger and could take longer than this to initialize.

This PR is attempting to allow a specific server timeout only.

An example is below showing overriding the kotlin-ls timeout.

{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["STYLE_GUIDE.md"],
  "provider": {
    "opencode": {
      "options": {},
    },
  },
  "lsp": {
    "kotlin-ls": {
      "timeout": 120000, 
    },
  },
}

Fixes #7477

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6997 **State:** open **Merged:** No --- This is a proposal to allow timeouts to be set for LSPs at the specific server/LSP levels. Currently, there is a default timeout of 45 seconds, which is sometimes not long enough. As one example, in the `kotlin-ls` LSP, some projects are larger and could take longer than this to initialize. This PR is attempting to allow a specific server timeout only. An example is below showing overriding the `kotlin-ls` timeout. ```json { "$schema": "https://opencode.ai/config.json", "instructions": ["STYLE_GUIDE.md"], "provider": { "opencode": { "options": {}, }, }, "lsp": { "kotlin-ls": { "timeout": 120000, }, }, } ``` Fixes #7477
yindo added the pull-request label 2026-02-16 18:17:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12195