Please sign in to comment.
fix(language-service): HTML path should include last node before curs…
…or (#34440) Given the following HTML and cursor position: ``` <div c|></div> ^ cursor is here ``` Note that the cursor is **after** the attribute `c`. Under the current implementation, only `Element` is included in the path. Instead, it should be `Element -> Attribute`. This bug occurs only for cases where the cursor is right after the Node, and it is because the `end` position of the span is excluded from the search. Instead, the `end` position should be included. PR Close #34440
- Loading branch information
Showing with 83 additions and 10 deletions.