-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a docker-compose Language ID so it can be assigned via file.associations (or manually) #206
Comments
Yes please. Right now it's frustrating to only have intellisense on files that are named 'docker-compose.yml' |
Thanks @seffyroff - I'm surprised there hasn't been more noise about this. The current implementation is great, but limited by strange implementation choices:
Perhaps this implementation is caused by other features in the extension that requiring knowing the filenames in advance (for action like compose up)
|
Yes, please add this! We use compose files names for components of our solution everywhere. I cannot believe this isn’t built it. |
Heavy +1. |
Do we need a PR to get this to happen? |
Temporarily, you can at least tell vscode that it's yml with the following (in
And if you use multiple Dockerfiles just add: |
It's already recognized as YAML. This is about getting Intellisense for the Docker Compose features, not syntax highlighting. |
Just add these to your config |
@akankov That does not appear to be a valid setting in 0.4.0: |
still open :'( |
as a workaround , you should name your file according to this to this like: export const COMPOSE_FILE_GLOB_PATTERN = '/[dD]ocker-[cC]ompose*.{yaml,yml}'; but the docker-compose icon still not work properly. |
Yes. please implement. For some reason in our project the compose-files are named "Composefile". With file associations i can associate them with YAML, but not with docker-compose. This results in "No Intellisense" and "No options in right-click context menu". |
Duping to #2539 |
Please add
docker-compose
to the installed languages and give it a unique language ID (likedockercompose
.This would enable assigning it via user-settings, workspace-settings and manually via the Select Language Mode dropdown.
I should be able to define a file to the docker-compose DSL with something like this:
An example of a YAML based DSL extension that does this is language-Ansible. It registers the
ansible
language which enables configuring and selecting the language as described above.I've read about changing the ENV var COMPOSE_FILE_GLOB_PATTERN, but this isn't a solution for many reasons:
The text was updated successfully, but these errors were encountered: