feat(opencode): add LSP timeout configuration#21006
Conversation
- Allow configured LSP entries to override initialize and diagnostics timeouts. - Document the behavior and lock in the default and override paths with tests.
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, I found a potentially related PR: Related PR:
Please verify if PR #13332 is already merged or closed, and whether the current PR (21006) is a reimplementation or enhancement of that work. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Related: #13328
Type of change
What does this PR do?
This PR adds per-server timeout configuration for configured LSP entries.
It introduces separate timeout settings for the two existing timeout paths:
timeout.startupfor the LSPinitializerequesttimeout.diagnosticsfor the diagnostics wait pathThis is related work for #13328, which calls out the lack of a user escape hatch for heavy LSP servers. It also follows the per-server configuration direction proposed in #6997 while keeping the scope limited to configured entries and the two existing timeout paths.
How did you verify your code works?
bun test test/lsp/client.test.ts test/config/config.test.tsinpackages/opencodebun typecheckinpackages/opencodeScreenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist