redhat-developer / redhat-developer/vscode-java
Auto-complete deletes code right of the cursor when key is pressed fast
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When I press enter or tab to apply the auto-completion it removes all the code from the right of the cursor. For example:
I have the code enemy.attack(enemy.getAttack());
If I want to auto-complete the enemy.getAttack() part it will detele the bracket and the semicolon after the method is inserted. I've tested on 3 different machines with different code and it still happens. But only when I press enter or tab fast after the auto-completion window pops up. If I wait a bit and then hit enter it inserts correctly.
Environment
- Operating System: Windows 10 20H2
- JDK version: 15.0.1
- Visual Studio Code version: 1.51.1
- Java extension version: 0.72.0
Steps To Reproduce
- Auto-complete code with enter or tab FAST after the window pops up
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the completion behavior in Visual Studio Code using Enter and Tab at different speeds, with the listed Java and extension versions if available. Compare the fast and delayed cases and trace the completion application path; done means applying a completion preserves the bracket, semicolon, and all code to the right of the cursor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, 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