Added npm install to the list of discovered npm tasks

This commit is contained in:
Erich Gamma 2017-05-28 17:29:39 +02:00
parent 944d4f1391
commit 8c1c1d14df

View file

@ -90,6 +90,8 @@ async function getNpmScriptsAsTasks(): Promise<vscode.Task[]> {
}
result.push(task);
});
// add some 'well known' npm tasks
result.push(new vscode.ShellTask(`npm: install`, `npm install`));
return Promise.resolve(result);
} catch (e) {
return Promise.resolve(emptyTasks);