Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

suggestion: Omit behaviour impl declarations from document symbols #523

@leonqadirie

Description

@leonqadirie

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions