public IntellisenseController(ITextView textView, IntellisenseControllerProvider provider)
        {
            Contract.Requires<ArgumentNullException>(textView != null, "textView");
            Contract.Requires<ArgumentNullException>(provider != null, "provider");

            _provider = provider;
            _completionInfo = new Lazy<CompletionInfo>(CreateCompletionInfo);
            Attach(textView);
        }
示例#2
0
        public IntellisenseController(ITextView textView, IntellisenseControllerProvider provider)
        {
            Contract.Requires <ArgumentNullException>(textView != null, "textView");
            Contract.Requires <ArgumentNullException>(provider != null, "provider");

            _provider       = provider;
            _completionInfo = new Lazy <CompletionInfo>(CreateCompletionInfo);
            Attach(textView);
        }
        public IntellisenseController([NotNull] ITextView textView, [NotNull] IntellisenseControllerProvider provider)
        {
            Requires.NotNull(textView, nameof(textView));
            Requires.NotNull(provider, nameof(provider));

            _provider       = provider;
            _completionInfo = new Lazy <CompletionInfo>(CreateCompletionInfo);
            Attach(textView);
        }