public CommandState GetCommandState(UncommentSelectionCommandArgs args)
        {
            if (args.SubjectBuffer.CheckEditAccess())
            {
                return(CommandState.Available);
            }

            return(CommandState.Unspecified);
        }
 public CommandState GetCommandState(UncommentSelectionCommandArgs args)
 {
     return(CommandState.Available);
 }
 public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext executionContext)
 {
     return(Execute(RemoveComment, args.TextView));
 }
Пример #4
0
 /// <summary>
 /// Uncomment the selected spans, and reset the selection.
 /// </summary>
 public void ExecuteCommand(UncommentSelectionCommandArgs args, Action nextHandler)
 {
     this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment);
 }
Пример #5
0
 public CommandState GetCommandState(UncommentSelectionCommandArgs args, Func <CommandState> nextHandler)
 {
     return(GetCommandState(args.SubjectBuffer, nextHandler));
 }
 /// <summary>
 /// Uncomment the selected spans, and reset the selection.
 /// </summary>
 public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext context)
 {
     return(this.ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, context));
 }
 public CommandState GetCommandState(UncommentSelectionCommandArgs args)
 {
     return(GetCommandState(args.SubjectBuffer));
 }
Пример #8
0
 public CommandState GetCommandState(UncommentSelectionCommandArgs args)
 => GetCommandState(args.SubjectBuffer);
 public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext executionContext)
 {
     ExecuteCommand(args.TextView, args.SubjectBuffer, Operation.Uncomment, executionContext);
     return(true);
 }
 public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext executionContext)
 {
     return(CommentHelper.CommentOrUncommentBlock(args.TextView, comment: false));
 }
 public CommandState GetCommandState(UncommentSelectionCommandArgs args) => CommandState.Available;
 public bool ExecuteCommand(UncommentSelectionCommandArgs args, CommandExecutionContext executionContext)
 => ExecuteCommandCore(args, executionContext, Operation.Uncomment);