Skip to content

Commit

Permalink
Show linux function apps (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejizba authored Apr 4, 2018
1 parent e1ad27a commit 9e7b9eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 8 additions & 3 deletions src/tree/FunctionAppProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IAzureTreeItem> {
Expand Down

0 comments on commit 9e7b9eb

Please sign in to comment.