public FirstUseOptimization(IThemeClassificationTypeService themeClassificationTypeService, ITextBufferFactoryService textBufferFactoryService, IRoslynDocumentationProviderFactory docFactory, IRoslynDocumentChangedService roslynDocumentChangedService) { var buffer = textBufferFactoryService.CreateTextBuffer(); var tagger = new RoslynTagger(buffer, themeClassificationTypeService, roslynDocumentChangedService); Task.Run(() => InitializeAsync(buffer, tagger, docFactory)) .ContinueWith(t => { var ex = t.Exception; Debug.Assert(ex == null); }, CancellationToken.None, TaskContinuationOptions.None, TaskScheduler.FromCurrentSynchronizationContext()); }