Skip to content

Commit 9e7b9eb

Browse files
authored
Show linux function apps (#312)
1 parent e1ad27a commit 9e7b9eb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
"ps-node": "^0.1.6",
618618
"request-promise": "^4.2.2",
619619
"semver": "^5.5.0",
620-
"vscode-azureappservice": "~0.14.0",
620+
"vscode-azureappservice": "~0.14.4",
621621
"vscode-azureextensionui": "~0.11.3",
622622
"vscode-azurekudu": "~0.1.7",
623623
"vscode-extension-telemetry": "^0.0.15",

src/tree/FunctionAppProvider.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ export class FunctionAppProvider implements IChildProvider {
3838

3939
this._nextLink = webAppCollection.nextLink;
4040

41-
return webAppCollection
42-
.filter((site: Site) => site.kind === 'functionapp')
43-
.map((site: Site) => new FunctionAppTreeItem(new SiteClient(site, node), this._outputChannel));
41+
const treeItems: IAzureTreeItem[] = [];
42+
for (const site of webAppCollection) {
43+
const siteClient: SiteClient = new SiteClient(site, node);
44+
if (siteClient.isFunctionApp) {
45+
treeItems.push(new FunctionAppTreeItem(siteClient, this._outputChannel));
46+
}
47+
}
48+
return treeItems;
4449
}
4550

4651
public async createChild(parent: IAzureNode, showCreatingNode: (label: string) => void, actionContext: IActionContext): Promise<IAzureTreeItem> {

0 commit comments

Comments
 (0)