Hi all!
I noticed that formatting a Docker Compose file strips away the YAML end document marker (...). This doesn't happen if you manually set a Docker Compose file as a YAML file, and format it.
Steps to reproduce:
- Create a Docker Compose file named
compose.yaml (although any other file name recognized by the dockercompose language definition would work).
- Ensure that VS Code recognizes the file
compose.yaml file as a Docker Compose file (look for the Compose language mode in the status bar (bottom right).
- Paste the following content in the file:
---
services:
test-service-1:
...
- Save the file.
- Format the file (if you don't have "Format on Save" enabled).
The resulting, formatted file is:
---
services:
test-service-1:
While I was expecting:
---
services:
test-service-1:
...
Is this behavior something I can configure? Or is it a bug?
Thanks!
Hi all!
I noticed that formatting a Docker Compose file strips away the YAML end document marker (
...). This doesn't happen if you manually set a Docker Compose file as a YAML file, and format it.Steps to reproduce:
compose.yaml(although any other file name recognized by the dockercompose language definition would work).compose.yamlfile as a Docker Compose file (look for theComposelanguage mode in the status bar (bottom right).The resulting, formatted file is:
While I was expecting:
Is this behavior something I can configure? Or is it a bug?
Thanks!