Skip to content

Commit 1a2cef2

Browse files
committed
Show AnnotateDeclaration UI from CE command for IAttributeAnnotations
This is an exception to the rule that annotations without parameters are applied immediately. This is necessary since the option to add.adjust the corresponding attribute exists now.
1 parent a1e92de commit 1a2cef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ protected override void OnExecute(object parameter)
133133
{
134134
var model = ModelFromParameter(annotation, target);
135135
if (!annotation.AllowedArguments.HasValue
136-
|| annotation.AllowedArguments.Value > 0)
136+
|| annotation.AllowedArguments.Value > 0
137+
|| annotation is IAttributeAnnotation)
137138
{
138139
model = _userInteraction.UserModifiedModel(model);
139140
}

0 commit comments

Comments
 (0)