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

suggestion: Omit behaviour impl declarations from document symbols #523

Open
leonqadirie opened this issue Jun 22, 2024 · 0 comments
Open

Comments

@leonqadirie
Copy link

leonqadirie commented Jun 22, 2024

The current implementation of document symbols (subjectively) feels cluttered if a module contains many impl declarations.

So given this snippet:

  use GenServer

  @impl GenServer
  def init(arg) do
    {
      :ok,
      arg,
      {:continue, :noop}
    }
  end

  @impl GenServer
  def handle_continue(
        :noop,
        arg
      ) do
    :ok
  end

I suggest to only provide the document symbols

def init(arg)
def handle_continue(:noop, arg)

instead of

@impl GenServer
def init(arg)
@impl GenServer
def handle_continue(:noop, arg)
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