redhat-developer / redhat-developer/vscode-java
When Implementing Interfaces, Quick Fix 💡Appears On Class Name Not Interface Name
Abierto
@yaohaizh ya está trabajando en esto.
Desde el 28/11/2018.
code action
enhancement
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 546
- Merge medio
- 20 h 1 min
- PR fusionados (30 d)
- 11
Descripción
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.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.