microsoft / vscode-azureresourcegroups

VS Code extension for managing Azure resources.
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups
MIT License
54 stars 29 forks source link

"Select Subscriptions..." shows in Azure Resources view if adding an empty item in "Azure Resource Groups: Selected Subscriptions" setting #939

Open v-ruizh opened 1 month ago

v-ruizh commented 1 month ago

OS: All Build Version: 0.9.7 Regression: Not a regression

Repro Steps:

  1. Sign in with Azure account.
  2. Reset user setting "Azure Resource Groups: Selected Subscriptions". Image
  3. Refresh the Azure Resources view and all subscriptions show in Azure Resources view.
  4. Add an invalid item in "Azure Resource Groups: Selected Subscriptions" setting, such as an empty item. Image
  5. Refresh the Azure Resources view.
  6. Check whether all subscriptions show in Azure Resources view.

Expect: All subscriptions show in Azure Resources view.

Actual: "Select Subscriptions..." shows in Azure Resources view. Image

More Info: If both valid items and invalid items show in "Azure Resource Groups: Selected Subscriptions" setting, refresh the Azure Resources view, the corresponding subscriptions which added by valid items will show in Azure Resources view.