microsoft / vscode-azureresourcegroups

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

An error occurs when clicking "Click to view resource" without Azure view opening #393

Open v-xinda opened 2 years ago

v-xinda commented 2 years ago

OS: Mac (Pro)/Win10/Ubuntu 22.04 Build Version: 20220906.4 Regression: Not a regression

Repro Steps:

  1. Create a function app.
  2. Navigate to other view (such as Debug view) during creating a function app.
  3. Click "Click to view resource".
  4. Check whether no error occurs.

Expect: No error occurs.

Actual: An error occurs. image

philliphoff commented 2 years ago

Verified in the currently released version (1.7.4) so not specific to the 1.8 version. I wonder if it's a similar issue to vscode-azureresourcegroups#202 where reveal doesn't always work if tree nodes have yet to be enumerated.

philliphoff commented 2 years ago

Note: it seems to always work on the 2nd try.

nturinski commented 2 years ago

Pretty sure that this is an issue with the Resources extension. From the repro steps, I suspect we might have to ensure that the Azure View is visible/loaded before we try to run reveal? Of course, this will most likely change when we do the v2 tree work.