Esempio n. 1
0
        public SubscriptionManager(LintCheckerProvider lintCheckerProvider, ITableDataSink sink)
        {
            _lintCheckerProvider = lintCheckerProvider;
            _sink = sink;

            lintCheckerProvider.AddSinkManager(this);
        }
Esempio n. 2
0
        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));
        }