redhat-developer / redhat-developer/vscode-java
[Bug] Autocompletion/Importing not working in 3 scenarios
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
There are 3 scenarions where autocompletion/importing does not work.
@NamedQueries({ @NamedQuery(name = InnerClass, query = "SELECT t FROM Test t WHERE t.id = :id") })
The InnerClass is recognized, but can not be imported into java class. The ineer class is defined within same class where annotation is present.@NamedQueries({ @NamedQuery(name = "test", query = "SELECT t FROM Test t WHERE t.id = :id"), @NamedQuery(name = "testOne", query = "SELECT t FROM Test t WHERE t.id = :id") })
@NamedQueries can not be autocompleted and imported. The only way it is working is when there is only one item in array.- `public @interface Test {
Class<?>[] groups() default {};
List
}`
The List can not be autocompleted, the only way it is working is when Class<?>[] groups() default {}; is commented.
Also, all scenarios are within project attached and well documented. Please take a look.
vs-code-test.zip
Environment
- Operating System: Arch Linux
- JDK version: 21
- Visual Studio Code version: 1.88
- Java extension version: 1.29
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia aprendo l’allegato vs-code-test.zip e riproducendo i tre casi di annotazione e completamento nella Java extension nell’ambiente indicato. Traccia il comportamento del completamento e degli import per ogni snippet; il lavoro è completato quando InnerClass, più voci @NamedQuery e List vengono tutti completati automaticamente e importati correttamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- developer-experience, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100