@@ -10,30 +10,25 @@ namespace Microsoft.NodejsTools.Project
1010{
1111 internal class NodejsFolderNode : CommonFolderNode
1212 {
13- private readonly CommonProjectNode _project ;
13+ private readonly CommonProjectNode project ;
1414
1515 public NodejsFolderNode ( CommonProjectNode root , ProjectElement element ) : base ( root , element )
1616 {
17- this . _project = root ;
17+ this . project = root ;
1818 }
1919
2020 public override string Caption => base . Caption ;
2121
22- public override void RemoveChild ( HierarchyNode node )
23- {
24- base . RemoveChild ( node ) ;
25- }
26-
2722 internal override int IncludeInProject ( bool includeChildren )
2823 {
2924 // Include node_modules folder is generally unecessary and can cause VS to hang.
3025 // http://nodejstools.codeplex.com/workitem/1432
3126 // Check if the folder is node_modules, and warn the user to ensure they don't run into this issue or at least set expectations appropriately.
32- var nodeModulesPath = Path . Combine ( this . _project . FullPathToChildren , NodejsConstants . NodeModulesFolder ) ;
27+ var nodeModulesPath = Path . Combine ( this . project . FullPathToChildren , NodejsConstants . NodeModulesFolder ) ;
3328 if ( CommonUtils . IsSameDirectory ( nodeModulesPath , this . ItemNode . Url ) )
3429 {
3530 Utilities . ShowMessageBox (
36- this . _project . Site , Resources . IncludeNodeModulesContent , SR . ProductName , OLEMSGICON . OLEMSGICON_WARNING , OLEMSGBUTTON . OLEMSGBUTTON_OK , OLEMSGDEFBUTTON . OLEMSGDEFBUTTON_FIRST ) ;
31+ this . project . Site , Resources . IncludeNodeModulesContent , SR . ProductName , OLEMSGICON . OLEMSGICON_WARNING , OLEMSGBUTTON . OLEMSGBUTTON_OK , OLEMSGDEFBUTTON . OLEMSGDEFBUTTON_FIRST ) ;
3732 return VSConstants . S_OK ;
3833 }
3934 return base . IncludeInProject ( includeChildren ) ;
0 commit comments