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)); }
/// <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); }
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)); }
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);