diff --git a/package.json b/package.json index 07a232d18..7b0af19a0 100644 --- a/package.json +++ b/package.json @@ -617,7 +617,7 @@ "ps-node": "^0.1.6", "request-promise": "^4.2.2", "semver": "^5.5.0", - "vscode-azureappservice": "~0.14.0", + "vscode-azureappservice": "~0.14.4", "vscode-azureextensionui": "~0.11.3", "vscode-azurekudu": "~0.1.7", "vscode-extension-telemetry": "^0.0.15", diff --git a/src/tree/FunctionAppProvider.ts b/src/tree/FunctionAppProvider.ts index 200b7a49c..ff0b923c7 100644 --- a/src/tree/FunctionAppProvider.ts +++ b/src/tree/FunctionAppProvider.ts @@ -38,9 +38,14 @@ export class FunctionAppProvider implements IChildProvider { this._nextLink = webAppCollection.nextLink; - return webAppCollection - .filter((site: Site) => site.kind === 'functionapp') - .map((site: Site) => new FunctionAppTreeItem(new SiteClient(site, node), this._outputChannel)); + const treeItems: IAzureTreeItem[] = []; + for (const site of webAppCollection) { + const siteClient: SiteClient = new SiteClient(site, node); + if (siteClient.isFunctionApp) { + treeItems.push(new FunctionAppTreeItem(siteClient, this._outputChannel)); + } + } + return treeItems; } public async createChild(parent: IAzureNode, showCreatingNode: (label: string) => void, actionContext: IActionContext): Promise {