This repository was archived by the owner on Jul 20, 2026. It is now read-only.
how to disable or get the commands for the docker-compose.yml formatter #3602
Answered
by
bwateratmsft
Daniel Tucker (dantuck)
asked this question in
Q&A
|
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! |
Answered by
bwateratmsft
Aug 17, 2022
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 |
2 replies
Answer selected by
dantuck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.jsonor 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
yamllibrary and rewriting it with a certain number of spaces for indentation; one could create an executable NPM script / package to do the same.