Introduce character escaping for "extract strings" code action #25
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Related to this feature https://github.com/avast/yls/blob/master/yls/code_actions.py#L38
When extracting strings we don't check/convert the string if it contains characters that needs escaping.
Thinking about this and after discussion with users, we should treat the input strings as un-escaped by default. This means that every
"
should be changed to\"
and also for every\
we should add another one\\
.Some examples (good test cases):
The text was updated successfully, but these errors were encountered: