public void ExecuteCommand(DownKeyCommandArgs args, Action nextHandler, CommandExecutionContext context)
        {
            if (TryGetController(args, out var controller) && controller.TryHandleDownKey())
            {
                return;
            }

            nextHandler();
        }
示例#2
0
        internal bool TryHandleDownKey(DownKeyCommandArgs commandArgs)
        {
            if (!TryGetController(commandArgs, out var controller))
            {
                return(false);
            }

            return(controller.TryHandleDownKey());
        }
示例#3
0
        public void ExecuteCommand(DownKeyCommandArgs args, Action nextHandler, CommandExecutionContext context)
        {
            if ((_signatureHelpCommandHandler != null && _signatureHelpCommandHandler.TryHandleDownKey(args)))
            {
                return;
            }

            nextHandler();
        }
示例#4
0
        public void ExecuteCommand(DownKeyCommandArgs args, Action nextHandler)
        {
            if (//(_completionCommandHandler != null && _completionCommandHandler.TryHandleDownKey(args)) ||
                (_signatureHelpCommandHandler != null && _signatureHelpCommandHandler.TryHandleDownKey(args)))
            {
                return;
            }

            nextHandler();
        }
 public VSCommanding.CommandState GetCommandState(DownKeyCommandArgs args, Func <VSCommanding.CommandState> nextHandler)
 {
     return(nextHandler());
 }
 public CommandState GetCommandState(DownKeyCommandArgs args, Func <CommandState> nextHandler)
 => nextHandler();
示例#7
0
 bool ICommandHandler <DownKeyCommandArgs> .ExecuteCommand(DownKeyCommandArgs args, CommandExecutionContext executionContext)
 {
     GetOperations(args.TextView).MoveLineDown(extendSelection: false);
     return(true);
 }
示例#8
0
 CommandState ICommandHandler <DownKeyCommandArgs> .GetCommandState(DownKeyCommandArgs args)
 {
     return(CommandState.Available);
 }