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

Extension issue: Intellisense is not working for docker compose file. #3222

Closed
ashish-thakur111 opened this issue Sep 21, 2021 · 8 comments
Closed

Comments

@ashish-thakur111
Copy link

  • Issue Type: Bug
  • Extension Name: vscode-docker
  • Extension Version: 1.17.0
  • OS Version: Windows_NT x64 10.0.19043
  • VS Code version: 1.60.1
{
	"messages": [],
	"activationTimes": {
		"codeLoadingTime": 74,
		"activateCallTime": 3,
		"activateResolvedTime": 44,
		"activationReason": {
			"startup": false,
			"extensionId": {
				"value": "ms-azuretools.vscode-docker",
				"_lower": "ms-azuretools.vscode-docker"
			},
			"activationEvent": "onLanguage:dockercompose"
		}
	},
	"runtimeErrors": [],
	"runningLocation": 1
}

Intellisense is not showing up while writing docker compose file, even pressing ctrl+space key is not showing any suggestion.
Thanks

@bwateratmsft
Copy link
Collaborator

Hey @ashish-thakur111, this is by-design. We're in the process of implementing a proper language server for Compose. You can try it out by setting docker.enableDockerComposeLanguageService to true.

It's not very complete though, the completions right now are limited to just help with volumes. We're working on getting more for the next release.

@bwateratmsft
Copy link
Collaborator

See also #2539

@ashish-thakur111
Copy link
Author

Thanks for info @bwateratmsft . I checked out the readme at https://github.com/microsoft/vscode-docker#docker-compose, had a impression that it is working, but not for me in my vscode.

@bwateratmsft
Copy link
Collaborator

bwateratmsft commented Sep 22, 2021

🤦‍♂️

Somehow we forgot to update the readme! I feel silly...

UPDATE: I opened #3224 for that.

@zak905
Copy link

zak905 commented Oct 3, 2021

Even if I set docker.enableDockerComposeLanguageService to true it did not work for me. I had to downgrade to version v1.15.0 (random choice, it could be working with next releases inferior to v1.17.0) to get it to work. VS Code version: 1.60.2

@bwateratmsft
Copy link
Collaborator

The functionality present in 1.17 for the language service is fairly limited; we're working on adding back a lot more in 1.18.

@clouedoc
Copy link

For other users looking to use rollback to a previous version:

Capture d’écran 2021-10-13 à 21 20 45

@bwateratmsft bwateratmsft added this to the 1.18.0 milestone Oct 14, 2021
@microsoft microsoft locked and limited conversation to collaborators Nov 6, 2021
@bwateratmsft
Copy link
Collaborator

This fix is now released in Docker extension version 1.18.0. The Compose language service has been enabled by default and most of the completions present in 1.16 have returned. Some are not there (especially older Compose spec v2 ones), but we think the most important ones are present.

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

4 participants