public CompletionPresenter( ICompletionBroker completionBroker, IGlyphService glyphService, [ImportMany] IEnumerable <Lazy <ICompletionSetFactory, VisualStudioVersionMetadata> > completionSetFactories) { _completionBroker = completionBroker; _glyphService = glyphService; _completionSetFactory = VersionSelector.SelectHighest(completionSetFactories); }
public CompletionPresenterSession( ICompletionSetFactory completionSetFactory, ICompletionBroker completionBroker, IGlyphService glyphService, ITextView textView, ITextBuffer subjectBuffer) { _completionBroker = completionBroker; this.GlyphService = glyphService; _textView = textView; _subjectBuffer = subjectBuffer; _completionSet = completionSetFactory.CreateCompletionSet(this, textView, subjectBuffer); _completionSet.SelectionStatusChanged += OnCompletionSetSelectionStatusChanged; }