Breaks vscode native line selection via mouse click
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
vscode natively allows one to select a line by clicking to its left, on the line number. But with vim extension, if in insert mode with the insert point anywhere but column 1, clicking on a line number causes all but the first character to be selected, breaking the functionality.
To Reproduce
Steps to reproduce the behavior:
- Activate vim extension
- Open a document
- Enter insert mode with cursor not in column 1
- Click on a line number other than the line with the cursor in it
- Result: line except for first character is selected
Expected behavior
Complete line including first character is selected.
Screenshots
https://github.com/user-attachments/assets/06f948a8-5f05-4005-b8d0-ca4f5479fc2c
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.28.1 (2024-09-07)
- VSCode version: Version: 1.93.1 (Universal)
- OS: MacOS 14.2.1 (23C71)
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
No source file, test, or entry point is named. First reproduce the issue with VSCodeVim v1.28.1 in VS Code 1.93.1 by following the listed insert-mode and line-number click steps, then trace the extension's handling of that click and selection. Done means clicking another line number selects the complete line, including its first character.
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
- Mostly clear
- Newbie friendliness
- 38/100