Skip to content

[LSP] - should we get relatedDocuments when making pull diagnostic request #82652

@ZieMcd

Description

@ZieMcd

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions