-
Notifications
You must be signed in to change notification settings - Fork 234
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
Formatting YAML file inserts ternary operators #255
Comments
It looks like this bug will need to be reported to https://github.com/prettier/prettier because I can reproduce it on the prettier playground |
Looks like line length is what triggers it |
…e-plugin Add LSP-yaml client for Sublime Text
@JPinkney The issue within Prettier has been resolved within the following pull request: This change is published with version |
I just experienced this bug today. Can confirm that a long line triggered the bug. Would love to see a fix as I'm not familiar with the VSCode extensions development enough to propose one. |
This should probably be closed by now, but I ended up hitting the same issue with version v1.14.0. this_is_a_short_property: |
some data
this_is_a_long_propertyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyabc:
|
some data
? this_is_a_long_propertyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyabcd
: |
some data |
Hello!
I'm experiencing a very strange bug that's sure to pique your interest. I have a fairly large YAML file, a section of which contains maps like the following:
When I attempt to format the YAML document by selecting
Format Document
in the Command Palette, ternary operators (!) are inserted into various locations:You can reproduce this by creating a YAML file with the contents of the first code block above, and attempting to format it.
I'm running version
0.6.1
of the extension and version1.41
of VS Code, on macOS 10.15.2The text was updated successfully, but these errors were encountered: