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

Element with id is already registered issues related to reloading the extension host #881

Open alexweininger opened 4 months ago

alexweininger commented 4 months ago

For me, it happens ~75% of the time when I follow these steps:

  1. Load the Azure views, resources and workspace views.
  2. Run the "Developer: Restart Extension Host" command.

A few things will happen. Sometimes both these errors occur, sometimes it's only one or the other. And sometimes the resources view doesn't show anything at all but there are no errors. A refresh seems to fix it every time.

ed by Microsoft

I noticed that his happens often when switching Profiles. Since profiles contain different extensions they reload the extension host. I think this is important to investigate because just restarting the extension host shouldn't be causing this.

jdelombaert commented 1 week ago

Same issue for me: Element with id /subscriptions/***-***-***-***-*** is already registered.

Seems that my subscriptions under Azure: Select Subscriptions... are there more then once. Anyway to re-initialize this list? Has this bug already been looked into?