Skip to content

Commit 6c7dd4c

Browse files
committed
Add TODO marker for ComponentType in AddTemplateCommand
We currently use ClassModules, but in case that is not right, we will create problems in VB6. However, that is stuff for another PR.
1 parent 39735ac commit 6c7dd4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Rubberduck.Core/UI/CodeExplorer/Commands/AddTemplateCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public AddTemplateCommand(ICodeExplorerAddComponentService addComponentService,
4343
public IEnumerable<ProjectType> AllowableProjectTypes => ApplicableProjectTypes;
4444

4545
//We need a valid component type to add the component in the first place. Then the module content gets overwritten.
46+
//TODO: Find a way to pass in the correct component type for a template. (A wrong component type does not hurt in VBA, but in VB6 it does.)
4647
public ComponentType ComponentType => ComponentType.ClassModule;
4748

4849
public bool CanExecuteForNode(ICodeExplorerNode model)

0 commit comments

Comments
 (0)