camel-language-server icon indicating copy to clipboard operation
camel-language-server copied to clipboard

Improve reference location handling by specifying the correct start range

Open lhein opened this issue 6 years ago • 2 comments

see https://github.com/camel-tooling/camel-language-server/pull/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
            }
        }
    }
]

lhein avatar Nov 26 '18 14:11 lhein

it smells the issue to come from Camel itself. To be investigated more

apupier avatar Jul 15 '19 07:07 apupier

this is a known limitation of Camel currently: https://issues.apache.org/jira/browse/CAMEL-12640?focusedCommentId=16544928&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16544928

apupier avatar Jul 16 '19 09:07 apupier