di( doesn't work if there are multiple parentheses pairs
Open
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
di( doesn't work if there are multiple parentheses pairs.
To Reproduce
Steps to reproduce the behavior:
- Have a line with multiple closed parentheses pairs, e.g.
this (is) a (bug) - Place the cursor between the parentheses pairs, e.g. at the word
a di(- See error:
this () a (bug). And the cursor at the same place as it was in step 2.
Expected behavior
this (is) a () and the cursor between the last pair of parentheses
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 reported di( behavior in VSCodeVim with this (is) a (bug) and compare it with the expected result. Trace the implementation of the di( text-object handling and add or update coverage for multiple parenthesis pairs so the final deletion and cursor position match the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100