-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Add string rewriting assists #69
Conversation
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.
This PR is quite complicated. It would be better to split them into multiple small assists since they share no common code. Documentations can be added on individual fn
s. But they can still live in one mod
.
About naming, my suggestion is to use the form rewrite_<from>_to_<to>
for rewriting assists.
rewrite_uri_to_string
rewrite_string_to_indented
rewrite_indented_to_string
quote_attr
and unquote_attr
are okay to me.
Finally, don't forget to append to docs/code_actions.md
.
#39 (comment)