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

Add typecheck to e.config #240

Closed nturinski closed 3 years ago

nturinski commented 3 years ago

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

Previously, any entry without a config property could cause the entire function to throw an error. I changed the function a bit and am verifying that config exists before running a find on it (even though the types claim that it is always defined 😬