public VisualStudioCompletionSet( CompletionPresenterSession completionPresenterSession, ITextView textView, ITextBuffer subjectBuffer) { CompletionPresenterSession = completionPresenterSession; _textView = textView; SubjectBuffer = subjectBuffer; }
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 = CompletionItem.Glyph.GetImageMoniker(); }