public void PostprocessMouseLeftButtonUp(MouseButtonEventArgs e)
 {
     SelectNextCommandFilter.ClearSyncPoints();
 }
        private void AddCommandFilter(IVsTextView viewAdapter, IWpfTextView textView, SelectNextCommandFilter commandFilter)
        {
            if (commandFilter.Added == false)
            {
                IOleCommandTarget next;
                int result = viewAdapter.AddCommandFilter(commandFilter, out next);

                if (result == VSConstants.S_OK)
                {
                    commandFilter.Added = true;
                    textView.Properties.AddProperty(typeof(SelectNextCommand), commandFilter);

                    if (next != null)
                    {
                        commandFilter.NextTarget = next;
                    }
                }
            }
        }