vscode-docker
vscode-docker copied to clipboard
Duplicated IntelliSense with YAML extension
When both this extension and the YAML Support extension are enabled, the IntelliSense suggestions for docker compose files are duplicated like this:
I've noticed this too 😕
I'm not sure of the best approach other than to use the docker.enableDockerComposeLanguageService
setting to disable the language server provided by the Docker extension. They YAML extension may offer a way to selectively disable itself for files of the language type "Compose" (id: dockercompose
), but I have not checked.
We could add auto-detection so if we see YAML is also installed, maybe prompt if they want to disable the Docker language server.
@bwateratmsft do we feel as though the Docker extension provides more value for Yaml within the Compose file though?
If so would there be a way to instead suppress the YAML support extension just for this specific file type?
We could ask the YAML extension to support that, but it would require them to make changes. VSCode might also have a way to choose one language server or another for a given language, but I'm not sure.
Added over here https://github.com/redhat-developer/yaml-language-server/issues/715
@bwateratmsft I have an idea of how this can be solved. You can add a new separate Docker compose "language" which will be associated with this extension and corresponding language server and which won't be conflicting with YAML. This is what was done for example in Ansible extension: they also have separate "Ansible" language and language server
@Igorgro this was already done; there is a separate dockercompose
language definition built in to VSCode. The YAML extension is explicitly targeting that language as well as yaml
.
This is largely mitigated at this point; we did some deconfliction work with the YAML extension so that only some of the advanced completions show up if the YAML extension is present.