14
14
//
15
15
//*********************************************************//
16
16
17
- using System ;
18
17
using System . Collections . Generic ;
19
18
using System . Diagnostics ;
20
- using System . IO ;
21
- using System . Web . Script . Serialization ;
22
- using System . Windows . Forms ;
23
19
using Microsoft . VisualStudio . TemplateWizard ;
24
20
25
21
namespace Microsoft . NodejsTools . ProjectWizard {
@@ -34,23 +30,10 @@ public void BeforeOpeningFile(EnvDTE.ProjectItem projectItem) {
34
30
}
35
31
36
32
public void ProjectFinishedGenerating ( EnvDTE . Project project ) {
37
- Debug . Assert ( project . Object != null ) ;
38
- Debug . Assert ( project . Object is INodePackageModulesCommands ) ;
39
- // prompt the user to install dependencies
40
- var shouldDoInstall = MessageBox . Show ( @"The newly created project has dependencies defined in package.json.
41
-
42
- Do you want to run npm install to get the dependencies now?
43
-
44
- This operation will run in the background.
45
- Results of this operation are available in the Output window." ,
46
- "Node.js Tools for Visual Studio" ,
47
- MessageBoxButtons . YesNo
48
- ) ;
49
-
50
- if ( shouldDoInstall == DialogResult . Yes ) {
51
- var t = ( ( INodePackageModulesCommands ) project . Object ) . InstallMissingModulesAsync ( ) ;
52
- }
33
+ Debug . Assert ( project != null && project . Object != null ) ;
34
+ Debug . Assert ( project . Object is INodePackageModulesCommands ) ;
53
35
36
+ ( ( INodePackageModulesCommands ) project . Object ) . InstallMissingModulesAsync ( ) ;
54
37
}
55
38
56
39
public void ProjectItemFinishedGenerating ( EnvDTE . ProjectItem projectItem ) {
0 commit comments