Just a bit confused about how we are expected to pull diagnostics.
From my testing, it seems that when making requests for workspace/diagnostic, it does not return diagnostics for open buffers. However, when making requests via textDocument/diagnostic, we don’t receive relatedDocuments.
For example, if I have two documents open, say file A and file B, and I make a change to file A that affects file B, I won’t get diagnostics for file B via workspace/diagnostic, nor will I know about the change through relatedDocuments.
Is the expectation that the client should explicitly pull diagnostics for all open files?