/// <summary>
        /// Returns a collection of ICommandHandlers that match the appropriate content types for this view.
        /// </summary>
        public CommandHandlerService CreateCollectionForView(ITextView textView)
        {
            var contentTypes = textView.GetContentTypes();
            var handlers     = ExtensionOrderer.Order(_commandHandlers.SelectMatchingExtensions(contentTypes));

            return(new CommandHandlerService(handlers));
        }
        /// <summary>
        /// Returns a collection of ICommandHandlers that match the appropriate content types for this view.
        /// </summary>
        public CommandHandlerService CreateCollectionForView(ITextView textView)
        {
            var contentTypes = textView.GetContentTypes();
            var handlers = ExtensionOrderer.Order(_commandHandlers.SelectMatchingExtensions(contentTypes));

            return new CommandHandlerService(handlers);
        }