Uh oh!
There was an error while loading. Please reload this page.
feat: Add configurable lsp timeout - #6997
Conversation
The following comment was made by an LLM, it may be inaccurate: Results: No duplicate PRs found. The search for "lsp timeout" and "configurable timeout" returned PR #6997 (the current PR) along with some tangentially related PRs, but none of them appear to be addressing the same feature:
✅ Conclusion: PR #6997 appears to be a unique feature request for configurable LSP timeout with no existing duplicates. |
2f8d58a to
2e64e7aComparerekram1-node
commented
Jan 6, 2026
Adding timeout field to this makes sense: I dont really like that global version you did, I'd rather just make a flag |
tjg184
commented
Jan 6, 2026
Good call on removing the global timeout. Take a look at the change now. It's slightly different than what you suggested, as I believe just adding the |
Uh oh!
There was an error while loading. Please reload this page.
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
f1ae801 to
08fa7f7CompareClosing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR. |
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-lsLSP, 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-lstimeout.{ "$schema": "https://opencode.ai/config.json", "instructions": ["STYLE_GUIDE.md"], "provider": { "opencode": { "options": {}, }, }, "lsp": { "kotlin-ls": { "timeout": 120000, }, }, }Fixes#7477