microsoft / vscode-azureresourcegroups

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

Don't throw if resource group isn't found #622

Closed alexweininger closed 1 year ago

alexweininger commented 1 year ago

Fixes #608

For some reason there are resources with a resource group name that we can't find in our list of resource groups. I still don't know how that happens. These changes allow loading the tree if a resource group isn't found.

In my testing, the impact of passing undefined down to a grouping item is the view properties command breaks. But that's a much better result than not being able to load the groups at all.

I tested this by manually removing a resource group from the resource groups array.