public FailOnGetCompletionsProvider( Lazy <RazorCodeDocumentProvider> codeDocumentProvider, Lazy <CompletionProviderDependencies> completionProviderDependencies, RazorTextBufferProvider textBufferProvider, bool canGetSnapshotPoint = true) : base(codeDocumentProvider, completionProviderDependencies, textBufferProvider) { _canGetSnapshotPoint = canGetSnapshotPoint; }
public RazorDirectiveCompletionProvider( [Import(typeof(RazorCodeDocumentProvider))] Lazy <RazorCodeDocumentProvider> codeDocumentProvider, [Import(typeof(CompletionProviderDependencies))] Lazy <CompletionProviderDependencies> dependencies, RazorTextBufferProvider textBufferProvider) { if (codeDocumentProvider == null) { throw new ArgumentNullException(nameof(codeDocumentProvider)); } if (dependencies == null) { throw new ArgumentNullException(nameof(dependencies)); } if (textBufferProvider == null) { throw new ArgumentNullException(nameof(textBufferProvider)); } _codeDocumentProvider = codeDocumentProvider; _dependencies = dependencies; _textBufferProvider = textBufferProvider; }