internal static GotoDefinitionController CreateAndRegister(IWpfTextView textview, IWorkspaceManager workspaceManager, IVsTextView textViewAdapter)
        {
            GotoDefinitionController gotoDefinition = new GotoDefinitionController(textview, workspaceManager);

            textViewAdapter.AddCommandFilter(gotoDefinition, out IOleCommandTarget gotoDefinitionNext);
            gotoDefinition.Next = gotoDefinitionNext;
            return(gotoDefinition);
        }
        public void VsTextViewCreated(IVsTextView textViewAdapter)
        {
            IWpfTextView view = _adaptersFactory.GetWpfTextView(textViewAdapter);

            CompletionController completion = new CompletionController(view, _completionBroker);

            textViewAdapter.AddCommandFilter(completion, out IOleCommandTarget completionNext);
            completion.Next = completionNext;

            // Command Filter for GoToDefinition in .csproj files
            GotoDefinitionController gotoDefinition = GotoDefinitionController.CreateAndRegister(view, _workspaceManager, textViewAdapter);
        }