async getChildren()

in src/manifestList.ts [341:370]


    async getChildren(element?: WskDeployEntity): Promise<WskDeployEntity[]> {
        updateStatesByLocalWskPropFile(this.storageManager);

        if (element instanceof WskDeployManifest) {
            return [
                new WskDeployCommand(WskDeployCommands.DEPLOY, 'deploy', element),
                new WskDeployCommand(WskDeployCommands.UNDEPLOY, 'undeploy', element),
                new WskDeployCommand(WskDeployCommands.SYNC, 'sync', element),
            ];
        }

        let manifests: vscode.Uri[] = [];
        try {
            if (vscode.workspace.workspaceFolders) {
                manifests = await vscode.workspace.findFiles(
                    '**/*.{yml,yaml}',
                    '**/node_modules/**'
                );
            }
        } catch (e) {
            return [];
        }
        this._manifests = manifests
            .filter((file) => this.validateManifest(file.fsPath))
            .filter((f) => !this._filteredFiles.includes(f.fsPath))
            .sort()
            .map((uri) => new WskDeployManifest(uri));

        return this._manifests;
    }