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: Add support for Map as Constraint #199

Merged
merged 7 commits into from
Mar 13, 2023
Merged

Conversation

radeksimko
Copy link
Member

@radeksimko radeksimko commented Jan 30, 2023

Part of hashicorp/terraform-ls#496


Existing tests were updated as part of ddf691a (not part of this PR) and yield either comparable or better results, except for reference collection, which:

  • we agreed to leave for a separate PR
  • involves other constraints which aren't implemented yet

UX

2023-03-10 14 45 34

@radeksimko radeksimko added the enhancement New feature or request label Jan 30, 2023
@radeksimko radeksimko self-assigned this Jan 30, 2023
@radeksimko radeksimko force-pushed the f-expr-cons-map branch 2 times, most recently from b3012b7 to 8efff12 Compare February 15, 2023 08:26
@radeksimko radeksimko force-pushed the f-expr-cons-map branch 2 times, most recently from 2e1b681 to b938ec7 Compare February 21, 2023 10:33
@radeksimko radeksimko force-pushed the f-expr-cons-map branch 3 times, most recently from 54e173d to af3e246 Compare February 24, 2023 11:56
@radeksimko radeksimko changed the title decoder/schema: Add support for Map as Constraint decoder: Add support for Map as Constraint Mar 7, 2023
@radeksimko radeksimko force-pushed the f-expr-cons-map branch 6 times, most recently from e06082e to 69df3d0 Compare March 10, 2023 11:37
decoder/expr_map_completion_test.go Outdated Show resolved Hide resolved
decoder/expr_map_completion_test.go Outdated Show resolved Hide resolved
decoder/expr_map_completion_test.go Outdated Show resolved Hide resolved
decoder/expr_map_completion_test.go Outdated Show resolved Hide resolved
@radeksimko radeksimko marked this pull request as ready for review March 10, 2023 14:47
@radeksimko radeksimko requested a review from a team as a code owner March 10, 2023 14:47
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! I think everything is working as intended.

Just a small suggestion for another test case.

decoder/expr_map_completion_test.go Show resolved Hide resolved
@radeksimko radeksimko requested a review from dbanck March 10, 2023 17:11
@radeksimko
Copy link
Member Author

@dbanck I have made some last minor changes around the handling of the edge cases, as previously mentioned and also fixed one minor bug I found while working on that.

PTAL

Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for taking the time to update the completion to match List/Set/Tuple

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.

None yet

2 participants