diff --git a/src/VisualStudio/CSharp/Impl/Options/AutomationObject.cs b/src/VisualStudio/CSharp/Impl/Options/AutomationObject.cs index 96ee955b752fe319441de33e119e36f5f24a23ee..09191b66cdfa7df13f6a695f507d582221502e31 100644 --- a/src/VisualStudio/CSharp/Impl/Options/AutomationObject.cs +++ b/src/VisualStudio/CSharp/Impl/Options/AutomationObject.cs @@ -183,10 +183,16 @@ public int Indent_UnindentLabels } } - public EnterKeyRule InsertNewlineOnEnterWithWholeWord + public int InsertNewlineOnEnterWithWholeWord { - get { return GetOption(CompletionOptions.EnterKeyBehavior); } - set { SetOption(CompletionOptions.EnterKeyBehavior, value); } + get { return (int)GetOption(CompletionOptions.EnterKeyBehavior); } + set { SetOption(CompletionOptions.EnterKeyBehavior, (EnterKeyRule)value); } + } + + public int EnterKeyBehavior + { + get { return (int)GetOption(CompletionOptions.EnterKeyBehavior); } + set { SetOption(CompletionOptions.EnterKeyBehavior, (EnterKeyRule)value); } } public int NewLines_AnonymousTypeInitializer_EachMember