VSCodeVim / VSCodeVim/Vim

🐞[BUG] argument hints not working properly with vim motion

Open
#9,798 0 comments 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
If i enable inline function argument hints and try go to the beginning of the argument word it selects the hints not the first char

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'settings.json in vscode'
  2. Paste "python.analysis.inlayHints.callArgumentNames": "partial"
  3. Use vim motion on the function arguments
  4. See bug

Expected behavior
The cursor should select the first char of the argument word

Screenshots

Image Image Image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.31.0
  • VSCode version: 1.103.0
  • OS: Microsoft Windows NT 10.0.26100.0

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 this in VS Code 1.103.0 with VSCodeVim 1.31.0 and the settings.json value "python.analysis.inlayHints.callArgumentNames": "partial". Use Vim motion on a function argument and inspect how the inline hint affects the cursor position. Done means motion reaches and selects the first character of the argument rather than the hint.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.