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
Currently, when providing completion or hover, we use the attribute type.
There are many cases where an attribute can have a default value. e.g. Terraform provider schemas, or variables (exposed as attributes within module blocks). These defaults are already used to infer types when assembling attribute schemas, but the AttributeSchema definition doesn't hold these default values at all.
Background
Currently, when providing completion or hover, we use the attribute type.
There are many cases where an attribute can have a default value. e.g. Terraform provider schemas, or variables (exposed as attributes within
module
blocks). These defaults are already used to infer types when assembling attribute schemas, but theAttributeSchema
definition doesn't hold these default values at all.Proposal
DefaultValue cty.Value
toAttributeSchema
CandidatesAtPos()
to complete the default value on attribute completionHoverAtPos()
to show default value in hover dataThe text was updated successfully, but these errors were encountered: