public CompletionSet2(CompletionPresenterSession completionPresenterSession, ITextView textView, ITextBuffer subjectBuffer)
 {
     _completionPresenterSession = completionPresenterSession;
     _textView = textView;
     _subjectBuffer = subjectBuffer;
     this.Moniker = "All";
     this.DisplayName = "All";
 }
 public VisualStudio14CompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     _roslynCompletionSet = new Roslyn14CompletionSet(this,
                                                      completionPresenterSession, textView, subjectBuffer);
 }
 public VisualStudio15CompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     _roslynCompletionSet = new Roslyn15CompletionSet(this,
         completionPresenterSession, textView, subjectBuffer);
 }
 public ICompletionSet CreateCompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     return new VisualStudio15CompletionSet(
         completionPresenterSession, textView, subjectBuffer);
 }
 public ICompletionSet CreateCompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     return(new FilteredRoslynCompletionSet(
                completionPresenterSession, textView, subjectBuffer));
 }
 public ICompletionSet CreateCompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     return(new VisualStudio15CompletionSet(
                completionPresenterSession, textView, subjectBuffer));
 }
Example #7
0
 public CompletionSet2(CompletionPresenterSession completionPresenterSession, ITextView textView, ITextBuffer subjectBuffer)
 {
     _completionPresenterSession = completionPresenterSession;
     _textView        = textView;
     _subjectBuffer   = subjectBuffer;
     this.Moniker     = "All";
     this.DisplayName = "All";
 }
 public ICompletionSet CreateCompletionSet(
     CompletionPresenterSession completionPresenterSession,
     ITextView textView,
     ITextBuffer subjectBuffer)
 {
     return new FilteredRoslynCompletionSet(
         completionPresenterSession, textView, subjectBuffer);
 }
Example #9
0
 public CustomCommitCompletion(
     CompletionPresenterSession completionPresenterSession,
     CompletionItem completionItem)
 {
     // PERF: Note that the base class contains a constructor taking the displayText string
     // but we're intentionally NOT using that here because it allocates a private CompletionState
     // object. By overriding the public property getters (DisplayText, InsertionText, etc.) the
     // extra allocation is avoided.
     _completionPresenterSession = completionPresenterSession;
     this.CompletionItem         = completionItem;
     _imageMoniker = ImageMonikers.GetImageMoniker(CompletionItem.Tags);
 }
 public CustomCommitCompletion(CompletionPresenterSession completionPresenterSession, CompletionItem completionItem, string displayText)
     : base()
 {
     // PERF: Note that the base class contains a constructor taking the displayText string
     // but we're intentionally NOT using that here because it allocates a private CompletionState
     // object. By overriding the public property getters (DisplayText, InsertionText, etc.) the
     // extra allocation is avoided.
     _completionPresenterSession = completionPresenterSession;
     this.CompletionItem = completionItem;
     _displayText = displayText;
     _imageMoniker = CompletionItem.Glyph.HasValue ? CompletionItem.Glyph.Value.GetImageMoniker() : default(ImageMoniker);
 }
Example #11
0
 public CustomCommitCompletion(
     CompletionPresenterSession completionPresenterSession, 
     PresentationItem presentationItem)
     : base()
 {
     // PERF: Note that the base class contains a constructor taking the displayText string
     // but we're intentionally NOT using that here because it allocates a private CompletionState
     // object. By overriding the public property getters (DisplayText, InsertionText, etc.) the
     // extra allocation is avoided.
     _completionPresenterSession = completionPresenterSession;
     this.PresentationItem = presentationItem;
     _imageMoniker = ImageMonikers.GetImageMoniker(PresentationItem.Item.Tags, presentationItem.CompletionService.Language);
 }
Example #12
0
        public Roslyn14CompletionSet(
            IVisualStudioCompletionSet vsCompletionSet,
            CompletionPresenterSession completionPresenterSession,
            ITextView textView,
            ITextBuffer subjectBuffer)
        {
            VsCompletionSet = vsCompletionSet;

            CompletionPresenterSession = completionPresenterSession;
            _textView = textView;
            SubjectBuffer = subjectBuffer;

            vsCompletionSet.Moniker = "All";
            vsCompletionSet.DisplayName = "All";
        }
Example #13
0
        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);
            }
        }
Example #15
0
        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);
            }
        }
Example #16
0
        public RoslynCompletionSet(
            CompletionPresenterSession completionPresenterSession,
            ITextView textView,
            ITextBuffer subjectBuffer)
        {
            CompletionPresenterSession = completionPresenterSession;
            _textView     = textView;
            SubjectBuffer = subjectBuffer;

            this.Moniker     = "All";
            this.DisplayName = "All";

            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);
            }
        }