Exemplo n.º 1
0
        void ICommandHandler <SurroundWithCommandArgs> .ExecuteCommand(SurroundWithCommandArgs args, Action nextHandler)
        {
            // If the completion list is showing when the snippet picker is invoked, then the
            // editor fails to draw the text input area of the picker until a tab or enter is
            // pressed to select a snippet folder.

            AssertIsForeground();
            DismissCompletionForSnippetPicker(nextHandler);
        }
 void ICommandHandler <SurroundWithCommandArgs> .ExecuteCommand(SurroundWithCommandArgs args, Action nextHandler)
 {
     AssertIsForeground();
     ExecuteCommandWorker(args, nextHandler);
 }
 CommandState ICommandHandler <SurroundWithCommandArgs> .GetCommandState(SurroundWithCommandArgs args, Func <CommandState> nextHandler)
 {
     AssertIsForeground();
     return(GetCommandStateWorker(args, nextHandler));
 }
 void IChainedCommandHandler <SurroundWithCommandArgs> .ExecuteCommand(SurroundWithCommandArgs args, Action nextHandler, CommandExecutionContext context)
 {
     AssertIsForeground();
     ExecuteCommandWorker(args, nextHandler, context);
 }
 public bool ExecuteCommand(SurroundWithCommandArgs args, CommandExecutionContext executionContext)
 {
     return(_snippetManager.ShowInsertionUI(args.TextView, isSurroundsWith: true));
 }
 public CommandState GetCommandState(SurroundWithCommandArgs args) => CommandState.Available;
Exemplo n.º 7
0
 bool ICommandHandler <SurroundWithCommandArgs> .ExecuteCommand(SurroundWithCommandArgs args, CommandExecutionContext executionContext)
 {
     // Do nothing. We merely enable others to call this command
     return(true);
 }
Exemplo n.º 8
0
 CommandState ICommandHandler <SurroundWithCommandArgs> .GetCommandState(SurroundWithCommandArgs args)
 {
     return(CommandState.Available);
 }
Exemplo n.º 9
0
 VSCommanding.CommandState IChainedCommandHandler <SurroundWithCommandArgs> .GetCommandState(SurroundWithCommandArgs args, Func <VSCommanding.CommandState> nextHandler)
 {
     AssertIsForeground();
     return(nextHandler());
 }