Skip to content

Struct field support #43

@ollien

Description

@ollien

What would you like to see?
It would be great if the LSP could suggest struct fields for me, at least in cases where the type is glaringly obvious. For example,

def do_the_thing(%State{} = state) do
  state.<ctrl-space>
end

it would be great if at the point of ctrl-space, Dexter would suggest fields on State to me.

Why?
This would give better suggestions and avoid mistakes when looking up fields. I'm sure this is difficult to do in the general case, given this isn't compliation based, but perhaps some specific cases could be covered?

Alternatives considered
Not sure there are alternatives beyond my IDEs built in "buffer words" completions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions