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

Watch prospective root modules (to detect "terraform init" from scratch) #222

Closed
radeksimko opened this issue Jul 9, 2020 · 1 comment · Fixed by #385
Closed

Watch prospective root modules (to detect "terraform init" from scratch) #222

radeksimko opened this issue Jul 9, 2020 · 1 comment · Fixed by #385
Assignees
Labels
enhancement New feature or request

Comments

@radeksimko
Copy link
Member

Current Version

0.4.1

Use-cases

The user may not start with initialized root modules and therefore they won't be discovered by the server.

Instinctively though users will follow the error message and try to terraform init while keeping the editor open. The server however won't detect these new files and won't load the schema from the newly initialized root module automatically.

The server only detects changes for now.

Attempted Solutions

Restart editor/server.

Proposal

Identifying prospective root modules is difficult - in theory any folder with *.tf files, or even without may become a root module and be init-ed in the future.

We could however track prospective root modules by tracking any directory of a file which is received via didOpen, so we'd only actively track the folders of files which are currently open.

@ghost
Copy link

ghost commented Mar 4, 2021

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 context necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant