-
Notifications
You must be signed in to change notification settings - Fork 137
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
Subscribe to updates of module.providers data #902
Conversation
This commit automatically refreshes the Terraform Providers View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleProviders` request which terraform-ls can call to refresh the data shown in the Terraform Providers view. The terraform-ls server was modified to send `client.refreshModuleProviders` requests in hashicorp/terraform-ls#902
This commit automatically refreshes the Terraform Providers View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleProviders` request which terraform-ls can call to refresh the data shown in the Terraform Providers view. The terraform-ls server was modified to send `client.refreshModuleProviders` requests in hashicorp/terraform-ls#902
67bb8b8
to
e3cc8a8
Compare
Adds support for a client to register a command that will refresh clide side data based on changes the server has detected in the workspace. This specifically adds a new command to refresh the module providers shown client side. The existing Module hook system is used to detect changes in the workspace and notify the client that data has changed.
e3cc8a8
to
a7bf07e
Compare
This commit automatically refreshes the Terraform Module Calls View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleCalls` request which terraform-ls can call to refresh the data shown in the Terraform Module Calls view. The terraform-ls server was modified to send `client.refreshModuleCalls` requests in hashicorp/terraform-ls#902
db03c5b
to
a7bf07e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I found what I believe is unrelated bug while testing this, filed under #906 - we can take a look in a separate PR later.
…in open document (#1084) This commit automatically refreshes the Terraform Providers View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleProviders` request which terraform-ls can call to refresh the data shown in the Terraform Providers view. The terraform-ls server was modified to send `client.refreshModuleProviders` requests in hashicorp/terraform-ls#902
This commit automatically refreshes the Terraform Module Calls View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleCalls` request which terraform-ls can call to refresh the data shown in the Terraform Module Calls view. The terraform-ls server was modified to send `client.refreshModuleCalls` requests in hashicorp/terraform-ls#902
This commit automatically refreshes the Terraform Module Calls View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleCalls` request which terraform-ls can call to refresh the data shown in the Terraform Module Calls view. The terraform-ls server was modified to send `client.refreshModuleCalls` requests in hashicorp/terraform-ls#902
This commit automatically refreshes the Terraform Module Calls View when providers change in open document. This introduces a StaticFeature which registers a handler for the `client.refreshModuleCalls` request which terraform-ls can call to refresh the data shown in the Terraform Module Calls view. The terraform-ls server was modified to send `client.refreshModuleCalls` requests in hashicorp/terraform-ls#902
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Adds support for a client to register a command that will refresh clide side data based on changes the server has detected in the workspace.
This specifically adds a new command to refresh the module providers shown client side. The existing Module hook system is used to detect changes in the workspace and notify the client that data has changed.