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

Autoimport on accepting a suggestion moves cursor when "quickSuggestions" is set to "inline" #3566

Open
ArmoredPony opened this issue Apr 8, 2024 · 0 comments

Comments

@ArmoredPony
Copy link

When a class is automatically imported as a result of accepting an "inline" suggestion, an import line is added at the top of the file which moves other lines down by 1 or 2. However, the cursor remains at the same position which makes it feel like the cursor was moved on autoimport. This problem does not occur if "quickSuggestions" is set to "on".

Environment
  • Operating System: Windows 10
  • Visual Studio Code version: 1.87.2
  • Java extension version: 1.29.0
Steps To Reproduce
  1. Set "editor.quickSuggestions": { "other": "inline" } in settings.json
  2. Start typing a name of a not imported class
  3. Accept the suggestion
  4. An import line appears moving other lines down. The cursor, however, doesn't move along

Here's a demonstration.

bug.mp4
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

1 participant