-
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
Option to disable auto terraform providers schema
#645
Comments
terraform providers schema
Hi @uLan08 There are some trade-offs to consider when disabling this, but there are certainly users which never even run this command and we account for that possibility to some extent by pre-building the latest versions of schemas for ~200 official+partner providers (which includes AWS). With that in mind I agree that it may be useful to have an option to disable local sourcing of the schema. I have just modified your original issue to reflect some of the above and I'm transferring it to the language server repository as it's LS executing this command, which this extension uses, so that's where we can implement this. |
Oh I see...
To clarify, code completion will still be functional even if we disable running of |
This is due to the pre-built schemas I mentioned. We fall back to this pre-built source when schema cannot be obtained locally. This currently covers The downside of this approach is that these schemas may not match with the provider versions you actually use in your configuration or you may just use a provider that isn't in this group of 185. For example, the latest version of aws provider is We pre-build these schemas automatically at release time of the language server, but we don't cut releases every day to account for all changes in all 185 providers which occur probably almost every day. 😅 We plan to develop a more sustainable solution described in hashicorp/vscode-terraform#737 and #193 |
Versions
This feature does not yet exist in:
Extension
Language Server
Problem Statement
aws-vault
prompts for a password when accessing the credentials in the keychain.Now everytime I launch vscode I get spammed by
aws-vault
asking for my keychain password. I am assuming that this is because the Terraform extension automatically runsterraform init
in the background.This is normally not a problem as this is an expected behavior with
aws-vault
, I don't mind entering a password when I runterraform init
in my day to day work.Expected User Experience
I should be able to disable the automatic running of
terraform providers schema
via some configuration.Proposal
References
The text was updated successfully, but these errors were encountered: