Skip to content

Commit 5d37999

Browse files
author
Paul van Brenk
committed
No longer show the NPM install dialog after creating a new project.
Fixed microsoft#40
1 parent d6085c3 commit 5d37999

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

Nodejs/Product/ProjectWizard/NpmWizardExtension.cs

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@
1414
//
1515
//*********************************************************//
1616

17-
using System;
1817
using System.Collections.Generic;
1918
using System.Diagnostics;
20-
using System.IO;
21-
using System.Web.Script.Serialization;
22-
using System.Windows.Forms;
2319
using Microsoft.VisualStudio.TemplateWizard;
2420

2521
namespace Microsoft.NodejsTools.ProjectWizard {
@@ -34,23 +30,10 @@ public void BeforeOpeningFile(EnvDTE.ProjectItem projectItem) {
3430
}
3531

3632
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);
5335

36+
((INodePackageModulesCommands)project.Object).InstallMissingModulesAsync();
5437
}
5538

5639
public void ProjectItemFinishedGenerating(EnvDTE.ProjectItem projectItem) {

0 commit comments

Comments
 (0)