Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect cursor position when type hints are present #7344

Open
pythoulon opened this issue Dec 22, 2021 · 1 comment
Open

Incorrect cursor position when type hints are present #7344

pythoulon opened this issue Dec 22, 2021 · 1 comment

Comments

@pythoulon
Copy link

Describe the bug
When on the first character of a function argument for which the language extension provides a type hint, the cursor positions itself on the type hint rather than the actual first character. See screen capture below with a Javascript example.

To Reproduce

  1. click on the second character of an argument name
  2. Hit 'h' to move the cursor by one character left
  3. Voilà...

Expected behavior
The cursor should position itself on the first character of the argument name, not on the type hint (herebelow on the "m" of "msg", not on the "e" of the "error:" type hint)

Screenshots
image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.21.10
  • VSCode version: 1.63.2
  • OS: Windows 10

Additional context
ESLint extension from Microsoft v2.2.2, which provides the type hints.

@kristof-mattei
Copy link

kristof-mattei commented May 4, 2022

Same issue when using Rust-Analyzer:

  • Extension (VsCodeVim) version: v1.22.2
  • VSCodeVersion: 1.66.2
  • OS: Windows 11

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants