Skip to content

bug: add require code action put require inside typedstruct block #509

Open
@mhanberg

Description

@mhanberg

Problem

with code similar to the following, the require Logger expression was added in inside the typedstruct block

defmodule Bar do
  use TypedStruct

  require AnotherModule

  typedstruct module: Some.Thing do
    @moduledoc false
    field :name, String.t(), enforce: true
   
  end

  def foo do
    Logger.warning("something")
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions