how to disable or get the commands for the docker-compose.yml formatter #3602
-
Can someone point me to where the docker-compose.yml formatter is? I either need to be able to disable it or get the commands ran so we can add it into a pre-commit and/or CI check flow. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Converting this to a discussion as that seems to fit better. The formatter is in the Compose language service. You can disable it with this setting, either in your "[dockercompose]": {
"editor.formatOnSave": false
} I'm not aware of any way to use VSCode language servers as a precommit hook or CI check. Ultimately this particular formatter is just parsing it in with the |
Beta Was this translation helpful? Give feedback.
Converting this to a discussion as that seems to fit better.
The formatter is in the Compose language service. You can disable it with this setting, either in your
.vscode/settings.json
or in user settings:I'm not aware of any way to use VSCode language servers as a precommit hook or CI check. Ultimately this particular formatter is just parsing it in with the
yaml
library and rewriting it with a certain number of spaces for indentation; one could create an executable NPM script / package to do the same.