redhat-developer / redhat-developer/vscode-java

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

Offen
#598 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@yaohaizh arbeitet bereits daran.

Seit 28.11.2018.

code action enhancement
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.