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

Fix bug that prevents resource groups from loading when there's a ghost resource #820

Closed alexweininger closed 7 months ago

alexweininger commented 7 months ago

Fixes #819

This bug occurs when a deleted or nonexistent resource is returned by the Azure REST API by mistake. Previous behavior is that no resource groups were displayed, now all resources are displayed and an error is logged in the console.

The error looks like 2024-02-13 13:21:44.375 [error] Error creating grouping item for key: "RGNAME-rg" Internal error: Expected value to be neither null nor undefined: resourceGroup for grouping item