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

`pickAppResource` can return default item even if branch data provider is registered #640

Closed alexweininger closed 1 year ago

alexweininger commented 1 year ago

How to reproduce:

  1. Open a workspace
  2. Expand the Azure resources view so that App Services are loading...
  3. Run the "Deploy to Web App..." command and select a web app.
  4. It will throw a "Cannot read properties of undefined (reading 'createClient')" error because the node returned by pickAppResource is the default item, and not the branch data provider item.

This behavior is causing https://github.com/microsoft/vscode-azureappservice/issues/2440