Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion snippet when extending an abstract class or trait with members #369

Open
ckipp01 opened this issue Jan 24, 2024 · 0 comments
Open

Comments

@ckipp01
Copy link
Member

ckipp01 commented Jan 24, 2024

Is your feature request related to a problem? Please describe.

Let's say you have any interface of sorts like this:

trait Foo:
  def a: Int

When you are coding and you create an instance extending this you trigger a completion here:

class Bar extends Fo@@

You'll get a completion for Foo. However, if you then save, you are in a broken state because a must be implemented.

Describe the solution you'd like

I'd love for a completion option that would give me the following as a completion:

class Bar extends Foo:
  override def a: Int = ???

Describe alternatives you've considered

What I always currently do is save, go to the error, and then trigger a code action to implement all members. However it'd be great to just have this all down with one step.

Additional context

No response

Search terms

abstract members, completion, snippets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant