jmrog / vscode-nuget-package-manager

An extension for Visual Studio Code that lets you easily add or remove .NET Core 1.1+ package references to/from your project's .csproj file using Code's Command Palette.
MIT License
34 stars 17 forks source link

General code cleanup task #26

Open jmrog opened 7 years ago

jmrog commented 7 years ago

In some cases, functions return with a large block wrapped in new Promise((resolve, reject) => { . . . }, when it probably isn't necessary (I'm not sure because I'm basing this on memory alone right now) to wrap the whole block like that. This could be cleaned up. Also consider using async/await.

jmrog commented 6 years ago

Additionally, there are unnecessarily verbose index.ts files used just for exporting. They import first and then export, when they could simply just export directly from the files.

jmrog commented 6 years ago

More: some of the code could use better typing.