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

decoder: Implement InferType for complex expressions #256

Closed
wants to merge 1 commit into from

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Apr 13, 2023

As discovered in #251

Related to #247

One alternative (possibly simpler) solution here would be falling back to ConstraintType() of the corresponding constraint (List, Set, Tuple, Map, Object). I do see some benefits in the ability to infer types though in the long run.

UX Impact

There currently aren't any constraints in the Terraform schema involving "partially known" types as explained above, so there's no expected UX impact on Terraform LS users.

This was only discovered because some existing tests in #251 use the mentioned constraints.

@radeksimko radeksimko added the bug Something isn't working label Apr 13, 2023
@radeksimko radeksimko self-assigned this Apr 13, 2023
@radeksimko radeksimko added enhancement New feature or request and removed bug Something isn't working labels Apr 13, 2023
@radeksimko
Copy link
Member Author

Closing in favour of #259

@radeksimko radeksimko closed this Apr 14, 2023
@radeksimko radeksimko deleted the b-infer-type-complex-exprs branch April 14, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant