public void ExecuteCommand(RemoveUnnecessaryImportsCommandArgs args, Action nextHandler)
 {
     this.WaitIndicator.Wait(
         title: EditorFeaturesResources.OrganizeDocument,
         message: EditorFeaturesResources.OrganizingDocument,
         allowCancel: true,
         action: waitContext => this.RemoveUnusedImports(args.SubjectBuffer, waitContext.CancellationToken));
 }
 public CommandState GetCommandState(RemoveUnnecessaryImportsCommandArgs args, Func <CommandState> nextHandler)
 {
     return(GetCommandState(args, nextHandler, o => o.RemoveUnusedImportsDisplayStringWithAccelerator, needsSemantics: true));
 }