camel-language-server
camel-language-server copied to clipboard
Improve reference location handling by specifying the correct start range
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
}
}
}
]
it smells the issue to come from Camel itself. To be investigated more
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