public SignatureHelpSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy <ISignatureHelpSourceProvider, IOrderableContentTypeMetadata>[] signatureHelpSourceProviders)
        {
            if (textView == null)
            {
                throw new ArgumentNullException(nameof(textView));
            }
            if (triggerPoint == null)
            {
                throw new ArgumentNullException(nameof(triggerPoint));
            }
            if (intellisensePresenterFactoryService == null)
            {
                throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
            }
            if (signatureHelpSourceProviders == null)
            {
                throw new ArgumentNullException(nameof(signatureHelpSourceProviders));
            }
            Properties        = new PropertyCollection();
            TextView          = textView;
            this.triggerPoint = triggerPoint;
            this.trackCaret   = trackCaret;
            this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
            this.signatureHelpSourceProviders        = signatureHelpSourceProviders;
            this.signatures = new ObservableCollection <ISignature>();
            Signatures      = new ReadOnlyObservableCollection <ISignature>(this.signatures);

            TextView.Closed += TextView_Closed;
        }
Beispiel #2
0
 public QuickInfoSession(ITextView textView, ITrackingPoint triggerPoint, bool trackMouse, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy <IQuickInfoSourceProvider, IOrderableContentTypeMetadata>[] quickInfoSourceProviders)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     if (triggerPoint == null)
     {
         throw new ArgumentNullException(nameof(triggerPoint));
     }
     if (intellisensePresenterFactoryService == null)
     {
         throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
     }
     if (quickInfoSourceProviders == null)
     {
         throw new ArgumentNullException(nameof(quickInfoSourceProviders));
     }
     Properties        = new PropertyCollection();
     QuickInfoContent  = new BulkObservableCollection <object>();
     TextView          = textView;
     this.triggerPoint = triggerPoint;
     TrackMouse        = trackMouse;
     this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
     this.quickInfoSourceProviders            = quickInfoSourceProviders;
     TextView.Closed += TextView_Closed;
 }
Beispiel #3
0
 public CompletionSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy <ICompletionSourceProvider, IOrderableContentTypeMetadata>[] completionSourceProviders)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     if (triggerPoint == null)
     {
         throw new ArgumentNullException(nameof(triggerPoint));
     }
     if (intellisensePresenterFactoryService == null)
     {
         throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
     }
     if (completionSourceProviders == null)
     {
         throw new ArgumentNullException(nameof(completionSourceProviders));
     }
     this.completionSets = new ObservableCollection <CompletionCollection>();
     CompletionSets      = new ReadOnlyObservableCollection <CompletionCollection>(this.completionSets);
     Properties          = new PropertyCollection();
     TextView            = textView;
     this.triggerPoint   = triggerPoint;
     this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
     this.completionSourceProviders           = completionSourceProviders;
     //TODO: Use trackCaret
     TextView.Closed += TextView_Closed;
 }
Beispiel #4
0
		public QuickInfoSession(ITextView textView, ITrackingPoint triggerPoint, bool trackMouse, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy<IQuickInfoSourceProvider, IOrderableContentTypeMetadata>[] quickInfoSourceProviders) {
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			if (triggerPoint == null)
				throw new ArgumentNullException(nameof(triggerPoint));
			if (intellisensePresenterFactoryService == null)
				throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
			if (quickInfoSourceProviders == null)
				throw new ArgumentNullException(nameof(quickInfoSourceProviders));
			Properties = new PropertyCollection();
			QuickInfoContent = new BulkObservableCollection<object>();
			TextView = textView;
			this.triggerPoint = triggerPoint;
			TrackMouse = trackMouse;
			this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
			this.quickInfoSourceProviders = quickInfoSourceProviders;
			TextView.Closed += TextView_Closed;
		}
Beispiel #5
0
		public CompletionSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy<ICompletionSourceProvider, IOrderableContentTypeMetadata>[] completionSourceProviders) {
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			if (triggerPoint == null)
				throw new ArgumentNullException(nameof(triggerPoint));
			if (intellisensePresenterFactoryService == null)
				throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
			if (completionSourceProviders == null)
				throw new ArgumentNullException(nameof(completionSourceProviders));
			completionSets = new ObservableCollection<CompletionSet>();
			CompletionSets = new ReadOnlyObservableCollection<CompletionSet>(completionSets);
			Properties = new PropertyCollection();
			TextView = textView;
			this.triggerPoint = triggerPoint;
			this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
			this.completionSourceProviders = completionSourceProviders;
			//TODO: Use trackCaret
			TextView.Closed += TextView_Closed;
		}
		public SignatureHelpSession(ITextView textView, ITrackingPoint triggerPoint, bool trackCaret, IIntellisensePresenterFactoryService intellisensePresenterFactoryService, Lazy<ISignatureHelpSourceProvider, IOrderableContentTypeMetadata>[] signatureHelpSourceProviders) {
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			if (triggerPoint == null)
				throw new ArgumentNullException(nameof(triggerPoint));
			if (intellisensePresenterFactoryService == null)
				throw new ArgumentNullException(nameof(intellisensePresenterFactoryService));
			if (signatureHelpSourceProviders == null)
				throw new ArgumentNullException(nameof(signatureHelpSourceProviders));
			Properties = new PropertyCollection();
			TextView = textView;
			this.triggerPoint = triggerPoint;
			this.trackCaret = trackCaret;
			this.intellisensePresenterFactoryService = intellisensePresenterFactoryService;
			this.signatureHelpSourceProviders = signatureHelpSourceProviders;
			signatures = new ObservableCollection<ISignature>();
			Signatures = new ReadOnlyObservableCollection<ISignature>(signatures);

			TextView.Closed += TextView_Closed;
		}