Skip to content

Improve reference location handling by specifying the correct start range #193

@lhein

Description

@lhein

see #192 comment of @apupier :

  • the current end character is the same than the start one. Was it a problem with previous implementation searching in same file? if yes, can you create an issue to improve that? If not, might worth adding a check on position end in test and improve it.
    example of result:
[Trace - 3:23:43 PM] Received response 'textDocument/references - (25)' in 15ms.
Result: [
    {
        "uri": "file:///c%3A/Users/Aurelien%20Pupier/Desktop/camel4.xml",
        "range": {
            "start": {
                "line": 5,
                "character": 40
            },
            "end": {
                "line": 5,
                "character": 40
            }
        }
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions