예제 #1
0
		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;
		}
예제 #2
0
        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);
        }