-
Notifications
You must be signed in to change notification settings - Fork 313
Refactoring to change strings into block strings #1133
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
base: main
Are you sure you want to change the base?
Refactoring to change strings into block strings #1133
Conversation
64a73c4 to
6269b2d
Compare
479ad4c to
d669f4a
Compare
|
@nyarly if you have time, do you mind trying this out to see if it works well for you? I think it's mostly working, but there might be some edge cases I haven't considered. If you need help getting the project set up, free free to ask about that. |
d669f4a to
f2fb641
Compare
Adds two new refactoring actions to turn quoted strings into block strings. eg. if you have the following ```yaml root: "value1\value2" ``` There are two refactoring actions so that it can be turned into ```yaml root: >- value1 value2 ``` or ```yaml root: |- value1 value2 ``` Fixes redhat-developer#1119 Signed-off-by: David Thompson <[email protected]>
f2fb641 to
5a8c344
Compare
Should be fixed, I wasn't checking against the cursor position/selection range so I was suggesting all potential string conversions in the document. |
|
@datho7561 Let me see about getting this set up |

What does this PR do?
Adds two refactorings that change inline strings (i.e.
unquoted, single quoted, double quoted) into block strings. One for folded block string and one for literal block string.eg. if you have the following
There are two refactoring actions so that it can be turned into
or
What issues does this PR fix or reference?
Fixes #1119
Is it tested? How?