Skip to content

Commit f77b161

Browse files
committed
RefactorRename can't execute on built-in target
1 parent 246a3c7 commit f77b161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/UI/Command/Refactorings/CodePaneRefactorRenameCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override bool CanExecute(object parameter)
3333
}
3434

3535
var target = _state.FindSelectedDeclaration(Vbe.ActiveCodePane);
36-
return _state.Status == ParserState.Ready && target != null;
36+
return _state.Status == ParserState.Ready && target != null && !target.IsBuiltIn;
3737
}
3838

3939
public override void Execute(object parameter)

0 commit comments

Comments
 (0)