microsoft / vscode-azurevirtualmachines

Azure Virtual Machines extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurevirtualmachines
MIT License
32 stars 20 forks source link

Verify if VM was deleted before removing node from cache #204

Closed nturinski closed 3 years ago

nturinski commented 3 years ago

Fixes https://github.com/microsoft/vscode-azurevirtualmachines/issues/202

It wasn't refreshing because we're throwing an error with failures. I could make it a try/finally, but it should be safe to refresh immediately after awaiting the deleteAll function since that's when Azure reports that resources are deleted.