redhat-developer / redhat-developer/vscode-java
When Implementing Interfaces, Quick Fix 💡Appears On Class Name Not Interface Name
Ouverte
@yaohaizh y travaille déjà.
Depuis le 28/11/2018.
code action
enhancement
- Langage dominant
- TypeScript
- Étoiles
- 2.3k
- Forks
- 546
- Merge moyen
- 20 h 1 min
- PR mergées (30 j)
- 11
Description
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
- Create a class which implements an interface
public class MyTest implements Iterable<Integer> { }for example. - This code will not compile because the interface methods for
Iterablehave not been implemented yet. - No prompt to resolve this compile issue is presented after completing the generic typing of
Iterable. - Move cursor to
MyTestand implement the interface. This feature should not require moving your cursor.
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.