vscode-azureresourcegroups icon indicating copy to clipboard operation
vscode-azureresourcegroups copied to clipboard

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

Open v-xinda opened this issue 3 years ago • 3 comments

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

v-xinda avatar Sep 08 '22 11:09 v-xinda

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 avatar Sep 08 '22 17:09 philliphoff

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

philliphoff avatar Sep 08 '22 17:09 philliphoff

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.

nturinski avatar Sep 22 '22 22:09 nturinski