Skip to content

Make diagnostics a first class citizen in LSIF #825

@felixfbecker

Description

@felixfbecker

I am very interested in the potential for LSIF to track code smells in a code base. However, right now diagnostics feel like a second-class citizen, because their ranges are in a big array instead of using Range vertexes. It would be great if eventually we could include precomputed fixes for the diagnostics in LSIF too (through code actions), which would then want to share Ranges with diagnostics.

Is there any benefit to have the diagnostic ranges isolated in the array?
The only difficulty I can think of is that diagnostic ranges might overlap with symbol ranges in ways that the spec currently does not allow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionalitylsif

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions