vscode-projects-plus
Version:
An extension for managing projects. Feature rich, customizable, automatically finds your projects
32 lines (16 loc) • 580 B
text/typescript
/* IMPORT */
import {fetchPathDescription} from './path';
import Utils from '../../utils';
/* ENHANCE */
async function enhanceWithDescriptions ( config ) {
const projects = Utils.config.getProjects ( config );
await Promise.all ( projects.map ( async project => {
// if ( project.description ) return; //FIXME: Maybe this should be enabled
const description = await fetchPathDescription ( project.path );
if ( !description ) return;
project['description'] = description;
}));
return config;
}
/* EXPORT */
export {enhanceWithDescriptions};