예제 #1
0
 public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg)
 {
     if (group == VSConstants.VSStd2K)
     {
         var typedChar = GetTypedChar(group, id, inputArg);
         if (_autoFormat.IsPreProcessAutoformatTriggerCharacter(typedChar))
         {
             _autoFormat.HandleAutoformat(typedChar);
         }
     }
     return(base.Invoke(group, id, inputArg, ref outputArg));
 }
예제 #2
0
        public override void PostProcessInvoke(CommandResult result, Guid group, int id, object inputArg, ref object outputArg)
        {
            if (group == VSConstants.VSStd2K)
            {
                char typedChar = GetTypedChar(group, id, inputArg);
                if (AutoFormat.IsPostProcessAutoformatTriggerCharacter(typedChar))
                {
                    AutoFormat.HandleAutoformat(TextView, typedChar);
                }

                base.PostProcessInvoke(result, group, id, inputArg, ref outputArg);
            }
        }