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

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