public SubscriptionManager(LintCheckerProvider lintCheckerProvider, ITableDataSink sink) { _lintCheckerProvider = lintCheckerProvider; _sink = sink; lintCheckerProvider.AddSinkManager(this); }
public LintChecker(LintCheckerProvider provider, ITextView textView, ITextBuffer buffer) { _provider = provider; _buffer = buffer; _currentSnapshot = buffer.CurrentSnapshot; // Get the name of the underlying document buffer if (provider.TextDocumentFactoryService.TryGetTextDocument(textView.TextDataModel.DocumentBuffer, out ITextDocument document)) { this._document = document; } this.Factory = new LintTableSnapshotFactory(new LintingErrorsSnapshot(document, version: 0)); }