-
Notifications
You must be signed in to change notification settings - Fork 523
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 intellisense for docker compose files #2539
Comments
Other Notes & Ideas: Feb 11th Edit (per our meeting discussions):
|
@bwateratmsft should the According to https://github.com/compose-spec/compose-spec/blob/master/spec.md#compose-file and https://docs.docker.com/compose/compose-file/ - the latest specs says a file should be named
I also noticed now that when I renamed my file to |
Yeah, probably. 😄
I had not noticed this change, thank you for bringing it to our attention! I'm going to make a separate work item (#2618) to cover that for the time being. It is more urgent that we get that fix in place than that we create a compose language server. |
We will be able to do this incrementally which is good. The minimum viable product would include a language ID being defined, and syntax highlighting to support it. This would have the side benefit of reducing spurious activations for non-compose YAML files. |
@bwateratmsft Is the plan to implement this with VS Code APIs or as a language server? 🤔 |
Most likely a language server since I assume a lot of these features would require that. We also want to take the same language server and run it in VS--not just VSCode--which is a thing now, or so I'm told. 😄 |
Might get a language ID from VSCode itself: microsoft/vscode#118042 |
The pink whale icon has been extended to all |
Moving milestone to 1.19.0 as we have completed what we wanted to in 1.18.0. |
Rather than continually moving this a milestone at a time, I'm going to make sure issues exist for each of the remaining tasks in https://github.com/microsoft/compose-language-service, and close this one. |
@bwateratmsft the original post in this thread already contains existing issues. Just open them up again? |
Yeah, that's a better idea. I'll do that and transfer them to the other repo. |
Creating this umbrella issue since there are a bunch of different things that basically boil down to creating a language server + intellisense + etc. for compose files.
docker-compose.yml
anddocker-compose.override.yml
) (microsoft/vscode@5541826) (should be available in VSCode 1.61.0)file.associations
(Add a docker-compose Language ID so it can be assigned via file.associations (or manually) #206) (Add a compose language vscode#118042)onLanguage:yaml
accounts for about 60% of all our activations; I'm sure many (or most) of those are not actually docker-compose filesMaybe/currently not possible:
Semantic highlighting(I can't think of a use case)Change the file picking logic to be better and language-based(I don't think currently possible)Port-in-use intellisense(Gross, port scanning)Other:
docker-stack.yml (IntelliSense and file association for docker-stack.yml #520)Update: as of 2 Aug 21, about 33% of activations are due to Dockerfiles being opened, now about 25% are due to Docker Compose files being opened, with most of the balance being task runs and the Docker Explorer. This is down from 60% YAML, 30% Dockerfile, 10% others. This is a big improvement; by narrowing to activating for Compose documents only, the activations for Compose/YAML are way lower--this means far less spurious activation.
The text was updated successfully, but these errors were encountered: