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

Refreshing a group item doesn't behave as expected #617

Closed alexweininger closed 1 year ago

alexweininger commented 1 year ago

Say I opened the Azure Resources view, then created a new Function App in the portal. The expected behavior of refreshing the Function Apps group in the resources view would be that the newly created Function App appears.

Currently, refreshing a group doesn't refetch the list of resources, and will not pick up newly created resources.

The easiest solution would be to make refreshing a group always do a root-refresh. A root-refresh is the only way we currently have to trigger refetching the resource list.

Adding a way to refetch the resource list without having to refresh the entire tree might be a good thing to add in the future.

edit: Correction, a subscription refresh refreshes the resource list, so we don't have to do a root refresh.

bwateratmsft commented 1 year ago

Can we trap the event to refresh a group and turn it into refreshing the subscription?

alexweininger commented 1 year ago

Can we trap the event to refresh a group and turn it into refreshing the subscription?

This seems to work https://github.com/microsoft/vscode-azureresourcegroups/pull/618