private getCompletions()

in src/wskdeployYamlCompletion.ts [183:198]


    private getCompletions(completions: any) {
        return completions.map(
            (c: {
                label: string;
                text: string | undefined;
                documentation: string | undefined;
                detail: string | undefined;
            }) => {
                const completion = new vscode.CompletionItem(c.label);
                completion.insertText = new vscode.SnippetString(c.text);
                completion.documentation = new vscode.MarkdownString(c.documentation);
                completion.detail = c.detail;
                return completion;
            }
        );
    }