public ICompletionSession CreateCompletionSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret) { if (textView == null) throw new ArgumentNullException(nameof(textView)); if (triggerPoint == null) throw new ArgumentNullException(nameof(triggerPoint)); var stack = intellisenseSessionStackMapService.Value.GetStackForTextView(textView); var session = new CompletionSession(textView, triggerPoint, trackCaret, intellisensePresenterFactoryService.Value, completionSourceProviders); currentLineSpaceReservationService.Value.SessionCreated(session); stack.PushSession(session); return session; }
public ICompletionSession CreateCompletionSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret) { if (textView == null) { throw new ArgumentNullException(nameof(textView)); } if (triggerPoint == null) { throw new ArgumentNullException(nameof(triggerPoint)); } var stack = intellisenseSessionStackMapService.Value.GetStackForTextView(textView); var session = new CompletionSession(textView, triggerPoint, trackCaret, intellisensePresenterFactoryService.Value, completionSourceProviders); stack.PushSession(session); return(session); }