Skip to content
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

docker-compose.yml no intellisense autocomplete. #3260

Closed
EnochMtzR opened this issue Oct 10, 2021 · 2 comments
Closed

docker-compose.yml no intellisense autocomplete. #3260

EnochMtzR opened this issue Oct 10, 2021 · 2 comments

Comments

@EnochMtzR
Copy link

Before starting with my Issue / Idea, I'm not sure if this ticket might be a replication of #2539. If so, please forgive me as I haven't found the exact issue on the list provided in the aforementioned ticket.

According to README.md documentation there should be Intellisense support for Dockerfile and docker-compose.yml files with completions and syntax help. However, I have tested this functionality on docker-compose.yml files in both a Windows environment and Linux environment without any success. Only the yaml syntax is working. but no completion nor specific docker syntax is available.

Screenshot from 2021-10-10 16-57-43

Screenshot from 2021-10-10 16-34-20

Screenshot from 2021-10-10 16-38-30

Windows Environment Linux Environment
vscode version: 1.61.0 (user setup) vscode version: 1.61.0
OS: Windows_NT x64 10.0.19043 OS: Linux x64 5.13.0-7614-generic

Having said all this. I went into the code to see if I could figure out why this wasn't working and after a little digging, I find out that in the code there is only one call to the registerCompletionItemProvider and it is just for the dockerfile and there's no call for docker-compose.yml.

Screenshot from 2021-10-10 16-51-45

Most likely there's something I'm not seeing here. So I'm wondering:

  • Does this means the documentation is incorrect?
  • Am I missing some configuration for this to work?
  • Is my extension broken?
@ghost
Copy link

ghost commented Oct 11, 2021

I am also experiencing same issue. First I thought it was due to other installed extensions so I tried disabling and checking but still no luck.

EDIT: I just found out it is disabled intentionally. See #3222

WORKAROUND: Downgrade to version v1.15.0

@bwateratmsft
Copy link
Collaborator

@iamsavinaykumar is right, this is intentional for now. We're working on a brand new Compose language service and some features didn't make it into 1.17. With the upcoming 1.18 release, we're adding back the vast majority of the autocompletions. If the functionality is really needed for now, I'd downgrade to 1.16 until 1.18 is available.

I'll close this as a dupe of #3222.

@microsoft microsoft locked and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants