-
Notifications
You must be signed in to change notification settings - Fork 131
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
Detect and re-load terraform version & path change #69
Labels
enhancement
New feature or request
Comments
Based on some local experiments it appears that tfenv should work out of the box, given that it uses a shell script called We may just need to remove |
radeksimko
changed the title
terraform/discovery: Re-load path to terraform on version change
Detect and re-load terraform version & path on change
Jul 21, 2021
radeksimko
changed the title
Detect and re-load terraform version & path on change
Detect and re-load terraform version & path change
Jul 21, 2021
Closed
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use-cases
Allow users switching between Terraform versions whilst they have any files open in the IDE.
Attempted Solutions
We perform discovery of the Terraform binary only once per session, so the user has to reopen the session (folder), if they change Terraform version and want to keep all functionality working and accurate.
Proposal
We could trigger re-discovery (of the absolute path to Terraform and its new version) and re-reading of schema.
The trigger for such event could be:
tfenv use
, or simply change of.terraform-version
fileterraform
binaryterraform
binary (its checksum)Implementation Notes
LSP watching mechanism may limit watchers to the workspace, so we likely couldn't use that to watch for any changes on the
terraform
binary, assuming that's commonly outside of the workspace.The text was updated successfully, but these errors were encountered: