You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
gnadaban
changed the title
Formatting breaks for keys longer than 79 characters
Formatting breaks with default settings when yaml.format.printWidth is 80 but key is longer
May 7, 2024
Describe the bug
Certain YAML contents are erroneously converted into a weird non-yaml ternary-expression-like string.
Expected Behavior
Formatting should generate valid YAML even for long keys.
Current Behavior
The default
yaml.format.printWidth
is 80 characters. If the key is longer, questionmarks are added before keys when formatting.For example, this:
Gets formatted into this:
But this:
Turns into:
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: