public ErrorListPresenter(IWpfTextView textView, IErrorProviderFactory squiggleProviderFactory, IServiceProvider serviceProvider)
        {
            this.textView = textView;
            this.textView.TextBuffer.Changed += OnTextBufferChanged;
            this.textView.Closed             += new EventHandler(OnTextViewClosed);

            this.errorListProvider = new PyErrorListProvider();
            this.squiggleTagger    = squiggleProviderFactory.GetErrorTagger(textView.TextBuffer);

            errorList = new Microsoft.VisualStudio.Shell.ErrorListProvider(serviceProvider);

            previousErrors    = new List <ErrorTask>();
            previousSquiggles = new List <TrackingTagSpan <IErrorTag> >();

            CreateErrors();
        }
예제 #2
0
        public ErrorListPresenter(IWpfTextView textView, IErrorProviderFactory squiggleProviderFactory, IServiceProvider serviceProvider)
        {
            this.textView = textView;
            this.textView.TextBuffer.Changed += OnTextBufferChanged;
            this.textView.Closed += new EventHandler(OnTextViewClosed);

            this.errorListProvider = new PyErrorListProvider();
            this.squiggleTagger = squiggleProviderFactory.GetErrorTagger(textView.TextBuffer);

            errorList = new Microsoft.VisualStudio.Shell.ErrorListProvider(serviceProvider);

            previousErrors = new List<ErrorTask>();
            previousSquiggles = new List<TrackingTagSpan<IErrorTag>>();

            CreateErrors();
        }