Add support for LSP textDocument/diagnostic request #1567

Closed
opened 2026-02-16 17:31:35 -05:00 by yindo · 2 comments
Owner

Originally created by @dicarlo2 on GitHub (Sep 2, 2025).

Originally assigned to: @rekram1-node on GitHub.

LSP defines a new pull method for diagnostic requests. Native typescript LSP (https://github.com/microsoft/typescript-go tsgo) only supports the pull method for diagnostics. Based on testing (and looking at the tsgo source code), it only refreshes diagnostics synchronously after textDocument/didOpen and textDocument/didChange. Meaning, one of those MUST be sent before pulling diagnostics for the latest diagnostics.

Originally created by @dicarlo2 on GitHub (Sep 2, 2025). Originally assigned to: @rekram1-node on GitHub. LSP defines a new pull method for diagnostic requests. Native typescript LSP (https://github.com/microsoft/typescript-go tsgo) only supports the pull method for diagnostics. Based on testing (and looking at the tsgo source code), it only refreshes diagnostics synchronously after `textDocument/didOpen` and `textDocument/didChange`. Meaning, one of those MUST be sent before pulling diagnostics for the latest diagnostics.
yindo closed this issue 2026-02-16 17:31:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 2, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2358: Discusses LSP diagnostics not working properly with various LSP servers
  • #742: Reports LSP diagnostics returning empty results, particularly in large projects with timeout issues
  • #67: Documentation request for typescript-go LSP (the same LSP mentioned in this issue)
  • #2156: Reports stale LSP diagnostics not updating properly

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Sep 2, 2025): This issue might be a duplicate of existing issues. Please check: - #2358: Discusses LSP diagnostics not working properly with various LSP servers - #742: Reports LSP diagnostics returning empty results, particularly in large projects with timeout issues - #67: Documentation request for typescript-go LSP (the same LSP mentioned in this issue) - #2156: Reports stale LSP diagnostics not updating properly Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1567