next-ls
next-ls copied to clipboard
workspace command: inline a variable
A workspace command that inlines a variable.
defmodule Example do
def run(argument) do
var = String.split(argument, "\n")
DoSomeOtherThing.run(var)
end
end
Hovering var with the cursor on both places and running the workspace command should result in:
defmodule Example do
def run(argument) do
DoSomeOtherThing.run(String.split(argument, "\n"))
end
end