It's a common practice to save mix tasks "flattened" in a lib/mix/tasks directory, so a custom task called Mix.Tasks.MyLib.MyTask would live in lib/mix/tasks/my_lib.my_task.ex, instead of being nested in a my_lib directory. When suggesting a module name during a defmodule completion, however, Lexical doesn't take this into account.
# in lib/mix/tasks/my_lib.my_task.ex
defmodule|
# currently expands to
defmodule Mix.Tasks.MyLib.myTask do
|
end
# should expand to
defmodule Mix.Tasks.MyLib.MyTask do
|
end
It's a common practice to save mix tasks "flattened" in a
lib/mix/tasks
directory, so a custom task calledMix.Tasks.MyLib.MyTask
would live inlib/mix/tasks/my_lib.my_task.ex
, instead of being nested in amy_lib
directory. When suggesting a module name during adefmodule
completion, however, Lexical doesn't take this into account.