in src/wskContent.ts [41:53]
async provideTextDocumentContent(uri: vscode.Uri): Promise<string> {
const auth = getAuthFromUri(uri);
const ow = openwhisk({ api_key: auth.api_key, apihost: auth.apihost });
const content = await ow.actions.get(WskAction.removeExtension(uri.path));
if (content.exec.kind === 'sequence') {
return 'Codeview does not support sequence actions.';
}
if ((content.exec.kind as string) === 'blackbox' && !content.exec.code) {
return 'Codeview does not support native docker actions.';
}
return Promise.resolve(content.exec.code);
}