redhat-developer / redhat-developer/vscode-java

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

Open
#598 0 comments 0 reactions 1 assignee View on GitHub

@yaohaizh is already working on this.

Since Nov 28, 2018.

code action enhancement
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
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
  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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.