internal StandardCommandDispatcher RegisterCommandDispatcher(IWpfTextView wpfTextView)
        {
            var view = _adaptersFactory.GetViewAdapter(wpfTextView);

            if (view != null)
            {
                return(StandardCommandDispatcher.Register(view, wpfTextView, GetServices()));
            }
            return(null);
        }
 public void TextViewCreated(IWpfTextView wpfTextView)
 {
     System.Windows.Threading.Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
     {
         var view = _adaptersFactory.GetViewAdapter(wpfTextView);
         if (view != null)
         {
             StandardCommandDispatcher.Register(view, wpfTextView, GetServices());
         }
     }));
 }