Skip to content

completionRequest.getReplaceRange() is erroneous in text that contains / #723

@mickaelistria

Description

@mickaelistria

In LemMinX extensions, CompletionParticipantAdapter.onXMLContent, when on a node that contains / (eg path/to/something), then request.getReplaceRange() returns only the offset location (resulting in an insertion) while in other cases, it returns the whole text node area (which allows filtering and replacement).
I would expect to always get the whole text node range.
If it's not possible to always have the whole text node range, then it should always be the offset; or whatever over sane convention as long it's always the same one.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcompletionThis issue or enhancement is related to completion support

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions