redhat-developer / redhat-developer/vscode-java
Autocompletion not working in and after try/catch block in main method
Open
Nobody has claimed this yet.
content-assist
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description

Environment
- Operating System: Windows 7 x64
- JDK version: 1.8.0_192
- Visual Studio Code version: 1.29.1
- Java extension version: 0.35.0
Steps To Reproduce
- Make a main method and put try/catch into it
- Try autocomplete any variable in, or after try/catch block
Current Result
Autocompletion only shows word completions (only used words)
Expected Result
List of all variables, that are available at current cursor position
Additional Information
Java extension server does not show any error.
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
No source files or tests are named. Reproduce the issue in the listed Windows, JDK, VS Code, and Java extension environment, then trace completion handling around a Java main method's try/catch block. Done means available variables are listed both inside and after the block without server errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, 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