Example #1
0
        public void ExecuteCommand(LineEndExtendCommandArgs args, Action nextHandler)
        {
            if (HandleLineStartOrLineEndCommand(args.SubjectBuffer, args.TextView, lineStart: false, extendSelection: true))
            {
                return;
            }

            nextHandler();
        }
Example #2
0
 public bool ExecuteCommand(
     LineEndExtendCommandArgs args,
     CommandExecutionContext context
     ) =>
 HandleLineStartOrLineEndCommand(
     args.SubjectBuffer,
     args.TextView,
     lineStart: false,
     extendSelection: true
     );
Example #3
0
 public CommandState GetCommandState(LineEndExtendCommandArgs args)
 => GetCommandState();
Example #4
0
 public CommandState GetCommandState(LineEndExtendCommandArgs args, Func <CommandState> nextHandler)
 {
     return(GetCommandState(nextHandler));
 }
 public CommandState GetCommandState(LineEndExtendCommandArgs args)
 {
     return(GetCommandState());
 }
Example #6
0
 bool ICommandHandler <LineEndExtendCommandArgs> .ExecuteCommand(LineEndExtendCommandArgs args, CommandExecutionContext executionContext)
 {
     GetOperations(args.TextView).MoveToEndOfLine(extendSelection: true);
     return(true);
 }
Example #7
0
 CommandState ICommandHandler <LineEndExtendCommandArgs> .GetCommandState(LineEndExtendCommandArgs args)
 {
     return(CommandState.Available);
 }