redhat-developer / redhat-developer/vscode-java
Classes often won't show up when typing, but complete just fine in an import statement.
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
Had already used import org.springframework.security.test.context.support.WithMockUser; without issue.
Tried adding @WithSecurityContext to same class.
As I was typing, only 4 With* classes showed up (there are 6), and not the one I needed.
I go up to the imports, duplicate the WithMockUser line, delete "MockUser", hit Ctrl+Space, and all 6 With* classes show up! Why does it work here, but not at the class annotation?
I expect these would always show up.
I expect that after typing the full proper class name, that Ctrl+. would find the class and offer to import it.
If I type "@With", hit Ctrl+Space to bring up completion (still just shows the 4), continue with "Se", the suggestions are logical, but once I hit "c" I would expect the suggestions to go away, as there are no more logical ones. However, it stays up - no matter how much I hit Ctrl+Space to update it. (It appears like me activating it with my earlier Ctrl+Space has now prevented it from closing, even when the data is completed outdated, until you click away or hit Esc.)
Having a single minor issue preventing virtually all completion from working is already annoying enough, can't we have at least 1 thing that's nice?
Environment
- Operating System: Windows 10 + WSL 2 Ubuntu
- JDK version: WSL 2 Ubuntu openjdk-21
- Visual Studio Code version: 1.90.2
- Java extension version: 1.31.0
- Spring Initializer project init'd a few days ago - current.
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
Riprodurre il comportamento del completamento nell’ambiente Windows 10/WSL 2 Ubuntu indicato nella segnalazione, con VS Code 1.90.2, Java extension 1.31.0 e JDK 21, utilizzando l’esempio Spring Security riportato. Tracciare il punto di ingresso del completamento Java e confrontare il completamento delle annotazioni con il completamento degli import; il lavoro è completato quando le classi corrispondenti vengono visualizzate in modo coerente e i suggerimenti obsoleti si chiudono o si aggiornano quando il nome digitato non corrisponde più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100