You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a static list of all core functions in terraform-schema in the internal/funcs package. terraform-ls can consume this for a specific Terraform version via the FunctionsForVersion helper:
dbanck
transferred this issue from hashicorp/vscode-terraform
Feb 6, 2024
dbanck
changed the title
Add a Functions field to the provider schema to enable parsing from JSON
Add support for provider-defined functions
Feb 6, 2024
Background
We currently have a static list of all core functions in terraform-schema in the
internal/funcs
package. terraform-ls can consume this for a specific Terraform version via theFunctionsForVersion
helper:terraform-schema/schema/functions.go
Lines 20 to 24 in b462747
To support provider-defined functions, we need to merge the built-in functions with the dynamic functions from the provider schema.
Proposal
terraform-schema/schema/provider_schema.go
Lines 12 to 16 in b462747
SchemaMerger
terraform-schema/schema/schema_merge.go
Lines 37 to 41 in b462747
The text was updated successfully, but these errors were encountered: