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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Refactor SchemaMerger interface #335

wants to merge 4 commits into from

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.

@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
}

type ModuleReader interface {
ModuleCalls(modPath string) (tfmod.ModuleCalls, error)
type StateReader interface {
Copy link
Member

Choose a reason for hiding this comment

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

I'm sure I just forgot, but maybe a comment might help here to what a "state" is to terraform-schema and what the state reader handles?

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.

None yet

2 participants