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

module metadata: Decode module calls (for uninitialized modules) #882

Closed
4 tasks done
Tracked by #725 ...
radeksimko opened this issue Apr 21, 2022 · 1 comment · Fixed by #900
Closed
4 tasks done
Tracked by #725 ...

module metadata: Decode module calls (for uninitialized modules) #882

radeksimko opened this issue Apr 21, 2022 · 1 comment · Fixed by #900
Assignees
Labels
enhancement New feature or request modules Functionality related to the module block and modules generally

Comments

@radeksimko
Copy link
Member

radeksimko commented Apr 21, 2022

Background

Currently, when it comes to understanding relationships between modules (in completion, hover, go-to-definition etc.) we only consider module manifest within .terraform available after modules are installed.

Expecting users to always install modules just to gain the IntelliSense however may be asking for too much.

The following issues represent relevant work that depends on this:

Proposal

terraform-schema

  • Extend earlydecoder to also decode module blocks minimally (in version-agnostic way)
  • Add ModuleCalls to module.Meta

terraform-ls

  • state: Add ModuleCalls to state.ModuleMetadata
  • state: Ensure ModuleStore.ModuleCalls() returns module calls from the configuration in addition to module manifest
@github-actions
Copy link

github-actions bot commented Jun 9, 2022

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 Jun 9, 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