redhat-developer / redhat-developer/vscode-java
Code completion does not insert parentheses and parameter suggestions
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
Code completion fails to insert parantheses and parameter suggestions when invoked on a type for the first time.
Environment
- Operating System: Ubuntu 22.04.4 LTS
- JDK version: java-21-openjdk-amd64
- Visual Studio Code version: 1.91.0
- Java extension version: 1.32.0
Steps To Reproduce
- Open minimal Java Maven Project (Sample GitHub Repo)
- Open Java file
App.java - (Make sure that Language Server workspace is cleaned)
- In line 19, enter
set.and wait for completion list to appear - Enter
cloto filter completion list entries - Hit
<Enter>to select entryclone()from completion list
Current Result
set.clo gets expanded to set.clone
Expected Result
set.clo gets expanded to set.clone()
Additional Informations
- When completion item is focussed, completion item details (JavaDoc) cannot be displayed.
- Language client logs report an error every time the cursor keys are used to navigate the completion list (client.log)
- When completion item is selected (hitting
<Enter>), language server reports an error (server.log) - When triggering the completion list a second time, completion works as expected
- Reproduction can be repeated after cleaning Java Language Server workspace
- When reproducing the issue, I only had these extensions enabled:
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
Reproduce the issue in the minimal Java Maven project by opening App.java, cleaning the Language Server workspace, and selecting clone() after filtering the completion list. Read the linked client.log and server.log alongside the first completion invocation. Done means the first invocation inserts clone(), shows completion details, and no longer reports the described navigation or selection errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100