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));
 }
예제 #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);
 }
예제 #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);
 }
예제 #10
0
 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);
 }
예제 #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);
 }
예제 #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";
        }
예제 #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";
        }
예제 #14
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);
            }
        }
예제 #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);
            }
        }
예제 #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);
            }
        }