public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            if (!GherkinProcessorServices.GetOptions().EnableIntelliSense)
                return;

            IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter);
            Debug.WriteLineIf(view != null, "No WPF editor view found");
            if (view == null)
                return;

            var commandFilter = new GherkinCompletionCommandFilter(view, CompletionBroker, GherkinProcessorServices);

            IOleCommandTarget next;
            textViewAdapter.AddCommandFilter(commandFilter, out next);
            commandFilter.Next = next;
        }
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            if (!IntegrationOptionsProvider.GetOptions().EnableIntelliSense)
                return;

            IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter);
            Debug.WriteLineIf(view != null, "No WPF editor view found");
            if (view == null)
                return;

            var languageService = GherkinLanguageServiceFactory.GetLanguageService(view.TextBuffer);

            var commandFilter = new GherkinCompletionCommandFilter(view, CompletionBroker, languageService, Tracer);

            IOleCommandTarget next;
            textViewAdapter.AddCommandFilter(commandFilter, out next);
            commandFilter.Next = next;
        }
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            if (!IntegrationOptionsProvider.GetOptions().EnableIntelliSense)
            {
                return;
            }

            IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter);

            Debug.WriteLineIf(view != null, "No WPF editor view found");
            if (view == null)
            {
                return;
            }

            var languageService = GherkinLanguageServiceFactory.GetLanguageService(view.TextBuffer);

            var commandFilter = new GherkinCompletionCommandFilter(view, CompletionBroker, languageService, Tracer);

            IOleCommandTarget next;

            textViewAdapter.AddCommandFilter(commandFilter, out next);
            commandFilter.Next = next;
        }