public TemplateCompletionControllerProvider([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider, ICompletionBroker completionBroker, IAsyncQuickInfoBroker quickInfoBroker, ISignatureHelpBroker signatureHelpBroker)
 {
     _completionBroker    = completionBroker;
     _quickInfoBroker     = quickInfoBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _pyService           = (PythonToolsService)serviceProvider.GetService(typeof(PythonToolsService));
 }
示例#2
0
 internal KeyFilterFactory(
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ILightBulbBroker smartTagBroker,
     IAsyncQuickInfoBroker quickInfoBroker)
 {
     _helperFactory = new DisplayWindowHelper(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker);
 }
 public QuickInfoTextViewCreationListener(
     IAsyncQuickInfoBroker quickInfoBroker,
     JoinableTaskContext joinableTaskContext)
 {
     this.quickInfoBroker = quickInfoBroker
                            ?? throw new ArgumentNullException(nameof(quickInfoBroker));
     this.joinableTaskContext = joinableTaskContext
                                ?? throw new ArgumentNullException(nameof(joinableTaskContext));
 }
 internal DisplayWindowBrokerFactoryService(
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     IAsyncQuickInfoBroker quickInfoBroker)
 {
     _completionBroker    = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _quickInfoBroker     = quickInfoBroker;
 }
 private DisplayWindowHelper(
     ITextView view,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ILightBulbBroker smartTagBroker,
     IAsyncQuickInfoBroker quickInfoBroker)
     : this(completionBroker, signatureHelpBroker, smartTagBroker, quickInfoBroker)
 {
     TextView = view;
 }
 public TemplateCompletionController(
     PythonToolsService pyService,
     ITextView textView,
     IList <ITextBuffer> subjectBuffers,
     ICompletionBroker completionBroker,
     IAsyncQuickInfoBroker quickInfoBroker,
     ISignatureHelpBroker signatureBroker) :
     base(textView, subjectBuffers, completionBroker, quickInfoBroker, signatureBroker)
 {
     _pyService = pyService;
 }
 internal DisplayWindowBroker(
     ITextView textView,
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     IAsyncQuickInfoBroker quickInfoBroker)
 {
     _textView            = textView;
     _completionBroker    = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _quickInfoBroker     = quickInfoBroker;
 }
 internal DisplayWindowHelper(
     ICompletionBroker completionBroker,
     ISignatureHelpBroker signatureHelpBroker,
     ILightBulbBroker smartTagBroker,
     IAsyncQuickInfoBroker quickInfoBroker)
 {
     _completionBroker    = completionBroker;
     _signatureHelpBroker = signatureHelpBroker;
     _smartTagBroker      = smartTagBroker;
     _quickInfoBroker     = quickInfoBroker;
 }
示例#9
0
        internal QuickInfoController(
            IAsyncQuickInfoBroker quickInfoBroker,
            JoinableTaskContext joinableTaskContext,
            ITextView textView)
        {
            this.quickInfoBroker     = quickInfoBroker ?? throw new ArgumentNullException(nameof(quickInfoBroker));
            this.joinableTaskContext = joinableTaskContext ?? throw new ArgumentNullException(nameof(joinableTaskContext));
            this.textView            = textView ?? throw new ArgumentNullException(nameof(textView));

            IntellisenseUtilities.ThrowIfNotOnMainThread(joinableTaskContext);

            this.textView.MouseHover += this.OnMouseHover;
            this.textView.Closed     += this.OnTextViewClosed;
        }