redhat-developer / redhat-developer/vscode-java

Can not autocomplete/find inner class

Open
#3,815 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug upstream
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

When there is inner claas within Interface, and I try to autocomplete it from other method it can not find it.

Environment
  • Operating System: Windows 11
  • JDK version: 21
  • Visual Studio Code version: 1.94.2
  • Java extension version: 1.35.1
Steps To Reproduce
  1. Open project demo.zip
  2. Go to Mapper.java line 6, and try to autocomplete InnerClaa, the InnerClaas is located at ClaasOne.java

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the demo.zip reproduction, opening Mapper.java at line 6 and ClaasOne.java to inspect the inner class declaration. Reproduce autocomplete in the listed VS Code and Java extension versions, then trace the Java language-support entry point involved in resolving the inner class; done means the class is found and suggested from the other method.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.