VSCodeVim / VSCodeVim/Vim

Breaks vscode native line selection via mouse click

Open
#9,283 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Activate vim extension
  2. Open a document
  3. Enter insert mode with cursor not in column 1
  4. Click on a line number other than the line with the cursor in it
  5. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.