I use prettier to format yaml code. I recently noticed the formatting was wrong. After some digging around, I found out this is because the vscode yaml extension also formats my code, taking precedence over prettier.
When I set "yaml.format.enable": true, the code is formatted using prettier. When I set "yaml.format.enable": false, or the setting is omitted, the code is formatted using the vscode yaml extension.
I believe a boolean should be flipped somewhere.
Prettier is the the same formatter that this extension uses as well. I'll look into seeing where the flip would be.
The fix will be available in the next release!
@JPinkney It looks more like this setting has no effect at all anymore, judging from this change it seems that the option is no longer recognized by the language server.
Its fixed as of https://github.com/redhat-developer/yaml-language-server/pull/126 but I have no released yet
Most helpful comment
Its fixed as of https://github.com/redhat-developer/yaml-language-server/pull/126 but I have no released yet