VSCodeVim / VSCodeVim/Vim

`editor.action.smartSelect.expand` doesn't affect VIM selection

Open
#9,159 1 comment 1 reaction 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
The editor.action.smartSelect.expand command doesn't appear to affect VIM selection. After selecting more than one line, d, y, etc only applied to the original cursor position, not entire selection.

To Reproduce

  1. Create selection using editor.action.smartSelect.expand that spans multiple lines
  2. Press d

Expected behavior
All selected text deleted.

Observed behavior
Selection is dropped, cursor is at its original position.

Environment (please complete the following information):

Extension (VsCodeVim) version: v1.27.3
Version: 1.91.1 (user setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:13.855Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT arm64 10.0.26100

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

Start by reproducing the issue with editor.action.smartSelect.expand in a multi-line selection, then press d or y and trace how the VSCodeVim extension handles the resulting selection. Done means Vim operators preserve the full smart-expanded selection instead of dropping it and returning to the original cursor position.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.