Inheritance: IQuickInfoSession2
Beispiel #1
0
		public IQuickInfoSession CreateQuickInfoSession(ITextView textView, ITrackingPoint triggerPoint, bool trackMouse) {
			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 QuickInfoSession(textView, triggerPoint, trackMouse, intellisensePresenterFactoryService.Value, quickInfoSourceProviders);
			stack.PushSession(session);
			return session;
		}
Beispiel #2
0
        public IQuickInfoSession CreateQuickInfoSession(ITextView textView, ITrackingPoint triggerPoint, bool trackMouse)
        {
            if (textView is null)
            {
                throw new ArgumentNullException(nameof(textView));
            }
            if (triggerPoint is null)
            {
                throw new ArgumentNullException(nameof(triggerPoint));
            }
            var stack   = intellisenseSessionStackMapService.Value.GetStackForTextView(textView);
            var session = new QuickInfoSession(textView, triggerPoint, trackMouse, intellisensePresenterFactoryService.Value, quickInfoSourceProviders);

            stack.PushSession(session);
            return(session);
        }