public Roslyn14CompletionSet( IVisualStudioCompletionSet vsCompletionSet, CompletionPresenterSession completionPresenterSession, ITextView textView, ITextBuffer subjectBuffer) { VsCompletionSet = vsCompletionSet; CompletionPresenterSession = completionPresenterSession; _textView = textView; SubjectBuffer = subjectBuffer; vsCompletionSet.Moniker = "All"; vsCompletionSet.DisplayName = "All"; }
public Roslyn15CompletionSet( IVisualStudioCompletionSet vsCompletionSet, CompletionPresenterSession completionPresenterSession, ITextView textView, ITextBuffer subjectBuffer) : base(vsCompletionSet, completionPresenterSession, textView, subjectBuffer) { var document = GetDocument(); if (document != null) { var options = document.Project.Solution.Options; _highlightMatchingPortions = options.GetOption(CompletionOptions.HighlightMatchingPortionsOfCompletionListItems, document.Project.Language); _showFilters = options.GetOption(CompletionOptions.ShowCompletionItemFilters, document.Project.Language); } }