Skip to content

[BUG] Conflict with Docker Extension Prevents Formatting of docker-compose.yaml and Dockerfile #1000

@LisonFan

Description

@LisonFan

Hello,

I am experiencing an issue where the installation of the YAML extension seems to interfere with the Docker extension's ability to format docker-compose.yaml and Dockerfile.

Describe the bug

After installing the YAML extension, the Docker extension (ms-azuretools.vscode-docker) can no longer format docker-compose.yaml and Dockerfile. An error message is displayed: "No formatter installed for 'dockerfile/dockercompose' files." This issue does not occur until the YAML extension is installed, suggesting a conflict between the two extensions.
image
image
image

Steps to Reproduce

  1. Ensure the Docker extension from Microsoft is installed and functioning correctly: ms-azuretools.vscode-docker
  2. Install the YAML extension.
  3. Open a docker-compose.yaml or Dockerfile.
  4. Attempt to format the file using VSCode's Format Document feature.

Environment

  • VSCode Version: 1.85.1
  • OS: macOS Windows
  • Docker Extension Version: v1.28.0
  • YAML Extension Version: v1.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions