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

Index uninitalized modules #724

Closed
5 of 7 tasks
Tracked by #598
radeksimko opened this issue Nov 22, 2021 · 2 comments · Fixed by #997
Closed
5 of 7 tasks
Tracked by #598

Index uninitalized modules #724

radeksimko opened this issue Nov 22, 2021 · 2 comments · Fixed by #997
Assignees
Labels
enhancement New feature or request modules Functionality related to the module block and modules generally
Milestone

Comments

@radeksimko
Copy link
Member

radeksimko commented Nov 22, 2021

Background

The server implements an "indexer" (internally called "walker") which indexes modules by walking the file hierarchy. This allows the server to maintain data about modules which can be used for sourcing (more) relevant schema, providing cross-module references etc.

Use-cases

We have historically only indexed initialized modules (i.e. those which have .terraform directory). This was partially to reduce performance impact in the early versions of LS when we were indexing "synchronously" as part of responding to the initialize request and secondly because we only used the module manifest and provider binaries, not the configuration itself.

A new use case comes into play with cross-module "go-to-definition" and "go-to-references" (introduced in #700), where it would be beneficial to index all modules, even uninitialized ones.

Proposal

@danishprakash
Copy link
Contributor

Hey @radeksimko, is there anything I can pick up? I see a few recent enhancement-related issues filed by you, do you have a plan in mind for those or can I look into one of them? Please reply only when you've some time. Thanks.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request modules Functionality related to the module block and modules generally
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants