Beispiel #1
0
 public DartFileChangeTracker(IVsEditorAdaptersFactoryService editorAdaptersFactoryService, DartAnalysisServiceFactory analysisServiceFactory)
 {
     this.editorAdaptersFactoryService = editorAdaptersFactoryService;
     this.analysisService = analysisServiceFactory.GetAnalysisServiceAsync();
 }
Beispiel #2
0
        private async Task <IDisposable> SubscribeAsync(DartErrorListProvider errorProvider)
        {
            DartAnalysisService analysisService = await analysisServiceFactory.GetAnalysisServiceAsync().ConfigureAwait(false);

            return(analysisService.AnalysisErrorsNotification.Subscribe(errorProvider.UpdateErrors));
        }
Beispiel #3
0
        private async Task <IDisposable> SubscribeAsync()
        {
            DartAnalysisService analysisService = await analysisServiceFactory.GetAnalysisServiceAsync().ConfigureAwait(false);

            return(analysisService.AnalysisOutlineNotification.Where(en => en.File == file).Subscribe(UpdateSourceData));
        }
 public DartFormatDocument(ITextDocumentFactoryService textDocumentFactory, IVsTextView textViewAdapter, IWpfTextView textView, DartAnalysisServiceFactory analysisServiceFactory)
     : base(textDocumentFactory, textViewAdapter, textView, analysisServiceFactory, VSConstants.VSStd2KCmdID.FORMATDOCUMENT)
 {
     analysisService = analysisServiceFactory.GetAnalysisServiceAsync();
 }