-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add require code action #375
Conversation
end | ||
end | ||
""" | ||
text = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We get the text as a list of lines, which for the unused variable code isn't a problem but it's better to be consistent if anyone copies simple tests from other files like me.
name = | ||
alias | ||
|> Module.concat() | ||
|> to_string() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you use Macro.to_string it doesn't include the Elixir. prefix
This adds a require code action that adds `require Module` to your module whenever a macro is used without requiring it beforehand. It tries to insert the require after all the top level Elixir macros(moduledoc, alias, require, import).
74b530f
to
191dde0
Compare
This adds a require code action that adds
require Module
to your module whenever a macro is used without requiring it beforehand.It tries to insert the require after all the top level Elixir macros(moduledoc, alias, require, import).