Add required_providers
entry on provider completion
#370
Labels
enhancement
New feature or request
providers
Functionality related to Terraform providers
textDocument/completion
Current Version
Use-cases
With more providers preloaded in LS 0.12.0 per #341 the user might expect all of these providers to come up as completion candidates here:
provider "<HERE>"
but instead we only list official providers there. The technically correct, although inconvenient logic behind is that these are the only providers which can be used without explicit corresponding entry in
required_providers
.Workaround
It is possible to manually add the corresponding entry, for example
and completion for
provider "<HERE>
then containsgrafana
as a candidate and equallyresource
anddata
will complete relevant candidates from thegrafana
provider.Proposal
List all preloaded providers when completing
provider
block label and add the corresponding entry intorequired_providers
block on confirmation automatically.The text was updated successfully, but these errors were encountered: