public void ExecuteCommand(SortImportsCommandArgs args, Action nextHandler) { this.WaitIndicator.Wait( title: EditorFeaturesResources.OrganizeDocument, message: EditorFeaturesResources.OrganizingDocument, allowCancel: true, action: waitContext => this.SortImports(args.SubjectBuffer, waitContext.CancellationToken)); }
public bool ExecuteCommand(SortImportsCommandArgs args, CommandExecutionContext context) { using (context.OperationContext.AddScope(allowCancellation: true, EditorFeaturesResources.Organizing_document)) { this.SortImports(args.SubjectBuffer, context.OperationContext); } return(true); }
public CommandState GetCommandState(SortImportsCommandArgs args) { return(GetCommandState(args, o => o.SortImportsDisplayStringWithAccelerator, needsSemantics: false)); }