redhat-developer / redhat-developer/vscode-java

When Implementing Interfaces, Quick Fix 💡Appears On Class Name Not Interface Name

Aperta
#598 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@yaohaizh ci sta già lavorando.

Dal 28/11/2018.

code action enhancement
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

When implementing an interface with this plugin (public class Foo implements Buzz) an error is displayed under Foo upon completing the line because the interfaces methods are not implemented. If your cursor is moved over Foo or you move the text cursor there you will be presented with a 💡to implement the interface. This 💡should also appear over the interface Buzz to prevent having to backtrack and improve the experience when working with this plugin.

Environment
  • Operating System: MacOS
  • Visual Studio Code version: 1.25.1
  • Java extension version: 0.3.0
Steps To Reproduce
  1. Create a class which implements an interface public class MyTest implements Iterable<Integer> { } for example.
  2. This code will not compile because the interface methods for Iterable have not been implemented yet.
  3. No prompt to resolve this compile issue is presented after completing the generic typing of Iterable.
  4. Move cursor to MyTest and implement the interface. This feature should not require moving your cursor.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.