The LIST call sometimes won't retrieve defaultHostName. This seems to be happening somewhat randomly to people, but in our testing, the GET site call will always retrieve all the properties for that site, so we can use that to populate the property.
If it doesn't work, it'll throw an error which is somewhat intentional because this property is pretty much a requirement.
This isn't technically a breaking change because new ParsedSite will still work, it just won't throw an error if defaultHostName is undefined. That'll come whenever they use a command that requires it 😅
Fixes https://github.com/microsoft/vscode-azurefunctions/issues/4121
Hopefully.
The LIST call sometimes won't retrieve
defaultHostName
. This seems to be happening somewhat randomly to people, but in our testing, the GET site call will always retrieve all the properties for that site, so we can use that to populate the property.If it doesn't work, it'll throw an error which is somewhat intentional because this property is pretty much a requirement.
This isn't technically a breaking change because
new ParsedSite
will still work, it just won't throw an error ifdefaultHostName
is undefined. That'll come whenever they use a command that requires it 😅