Exemplo n.º 1
0
		public ISignatureHelpSession CreateSignatureHelpSession(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 SignatureHelpSession(textView, triggerPoint, trackCaret, intellisensePresenterFactoryService.Value, signatureHelpSourceProviders);
			currentLineSpaceReservationService.Value.SessionCreated(session);
			stack.PushSession(session);
			return session;
		}
Exemplo n.º 2
0
        public ISignatureHelpSession CreateSignatureHelpSession(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 SignatureHelpSession(textView, triggerPoint, trackCaret, this, signatureHelpSourceProviders);

            stack.PushSession(session);
            return(session);
        }
Exemplo n.º 3
0
        public ISignatureHelpSession CreateSignatureHelpSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret)
        {
            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 SignatureHelpSession(textView, triggerPoint, trackCaret, intellisensePresenterFactoryService.Value, signatureHelpSourceProviders);

            currentLineSpaceReservationService.Value.SessionCreated(session);
            stack.PushSession(session);
            return(session);
        }