You can search our list of issues or the discussions page to see if someone else has asked about something similar. If not, feel free to open a new issue or discussion. We look forward to hearing from you!
Please refer to this blog post and/or docker/vscode-extension#103.
For information regarding telemetry, please refer to TELEMETRY.md.
I am seeing duplicated editor features (such as code completion suggestions, hover tooltips, etc.) in Compose files.
Do you have any of the following extensions installed?
If yes, you can refer to the steps below to remove the duplicates. Alternatively, if you would prefer to disable the Compose editing features that this extension is providing, you can set the docker.extension.enableComposeLanguageServer
setting to false
and then restart Visual Studio Code.
- Red Hat's YAML extension (powered by redhat-developer/yaml-language-server)
- To disable duplicates from this extension, open the Command Palette in Visual Studio Code and open "Preferences: Open User Settings (JSON)".
- Set
docker.extension.enableComposeLanguageServer
totrue
by following the snippet below. - Create an object attribute for
yaml.schemas
if it does not already exist. - Inside the
yaml.schemas
object, copy the URL to this empty JSON file to Compose YAML files by following the snippet below. - YAML files named
compose*y*ml
ordocker-compose*y*ml
will now no longer have the Compose schema associated with them in Red Hat's extension so Red Hat's extension will stop providing YAML features for Compose files. This admittedly is a strange way to disable YAML features for a given file but it is the only known workaround for resolving this until redhat-developer/vscode-yaml#245 is implemented.
- Microsoft's Container Tools extension (powered by microsoft/compose-language-service)
- If microsoft/vscode-containers#75 is merged and you are on a release with this change, then the duplicates should already be taken of.
- If not, you can you can set the
containers.enableComposeLanguageService
setting tofalse
and restart Visual Studio Code.
- Microsoft's Docker extension (powered by microsoft/compose-language-service)
- If you have version 1.x installed, you can set the
docker.enableDockerComposeLanguageService
setting tofalse
and restart Visual Studio Code. - If you have version 2.x installed, then you can refer to the steps above for Microsoft's Container Tools extension instead.
- If you have version 1.x installed, you can set the