Not deleting the correct tag
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
If there are multiple tags on the same line, example: Set<String> set = HashSet<String>(), I believe it will always choose the left one. If the cursor is on the equals sign when running the command: "di<" it should delete the right "String" but it deletes the left one.
Also, I believe this is happening with every bracket type.
To Reproduce
Steps to reproduce the behavior:
- Create multiple tags on the same line (another example:
<test> <test2>) - Put the cursor in the space between them
- Run a command that involves selecting the inner text of the tags. Examples: "di<", "ci<", etc.
- Notice how it always selects the content in the left tag instead of the one to the right of the cursor
Expected behavior
It should select whichever is to the right of the cursor, not just the first one in the line.
Screenshots

After running di< with the cursor in the middle of the word "something"

Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.25.2
- VSCode version: 1.77.3
- OS: Windows 11
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in VSCodeVim with adjacent tags such as and commands like di< or ci<, placing the cursor between them. Trace the entry point for inner-text bracket selection across the reported bracket types; done means the tag to the right of the cursor is selected consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100