Skip to content

Add read and write tags to "find references" and "call hierarchy" responses (adapt API to proposal from LSP PR 2226) #951

@travkin79

Description

@travkin79

When showing the results of a find references or call hierarchy request, I'd like the UI to display if a reference or method call in the result is accessing an element (e.g. a variable) by reading or writing it or both. For that purpose, an LSP specification PR suggests to introduce new tags and to adapt the find references response's return type.

For example, the call hierarchy view in CDT (classic C/C++ editor) shows overlay icons with an "R" for read access, "W" for write access, or "RW" for both (see screenshot and see original LSP issue microsoft/language-server-protocol#2207)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions