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

Refactor SchemaMerger interface #335

Merged
merged 2 commits into from
Jun 7, 2024
Merged

Refactor SchemaMerger interface #335

merged 2 commits into from
Jun 7, 2024

Conversation

dbanck
Copy link
Member

@dbanck dbanck commented Mar 22, 2024

As part of the language server state splitting (hashicorp/terraform-ls#1626), we now have to get the declared module calls and the installed module calls from different sources.

We now have a separate method for each of them instead of a combined one. With the unified StateReader terraform-schema now also has less knowledge about where in particular the language server stores the state.

The diff is easier to review with "Hide whitespace" enabled.

@dbanck dbanck self-assigned this Mar 22, 2024
@dbanck dbanck force-pushed the c-refactoring-prep branch 2 times, most recently from 022d7ad to 5aad29f Compare April 10, 2024 15:13
@dbanck dbanck force-pushed the c-refactoring-prep branch from 5aad29f to 9254447 Compare April 23, 2024 08:11
@dbanck dbanck force-pushed the c-refactoring-prep branch from a56f5f7 to 34035ac Compare May 22, 2024 09:37
@dbanck dbanck changed the base branch from main to pre-release June 6, 2024 19:34
dbanck added 2 commits June 7, 2024 15:37
With a generic interface, terraform-schema now has less knowledge about
where in particular the language server stores the state.
We can use this generic AnyAttribute schema to collect
variable references without having to wait on the whole
module to finish processing
@dbanck dbanck force-pushed the c-refactoring-prep branch from 34035ac to 652edda Compare June 7, 2024 13:50
@dbanck dbanck marked this pull request as ready for review June 7, 2024 13:51
@dbanck dbanck requested a review from a team as a code owner June 7, 2024 13:51
Copy link
Contributor

@jpogran jpogran left a comment

Choose a reason for hiding this comment

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

💯

@dbanck dbanck merged commit 26a6f40 into pre-release Jun 7, 2024
1 check passed
@dbanck dbanck deleted the c-refactoring-prep branch June 7, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants