hashicorp / vscode-terraform

HashiCorp Terraform VSCode extension
https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform
Mozilla Public License 2.0
922 stars 179 forks source link

Remove organization name from context on logout #1445

Closed jpogran closed 1 year ago

jpogran commented 1 year ago

One thing we might consider in the future is cleaning up after logouts, like making sure we remove the organization name from the context.

Originally posted by @dbanck in https://github.com/hashicorp/vscode-terraform/pull/1443#pullrequestreview-1442367608

jpogran commented 1 year ago

The statusbar is reset when sessions are changed https://github.com/hashicorp/vscode-terraform/blob/131bf686ac231e55d90734acece57975499fa920/src/features/terraformCloud.ts#L46

Reseting the status bar clears the organization https://github.com/hashicorp/vscode-terraform/blob/131bf686ac231e55d90734acece57975499fa920/src/features/terraformCloud.ts#L202-L207

So this can be closed

github-actions[bot] commented 1 year ago

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.