public XamlTextViewCreationListener( [Import(typeof(SVsServiceProvider))] System.IServiceProvider services, ICommandHandlerServiceFactory commandHandlerServiceFactory, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IXamlDocumentAnalyzerService analyzerService, VisualStudioWorkspaceImpl vsWorkspace) { _serviceProvider = services; _commandHandlerService = commandHandlerServiceFactory; _editorAdaptersFactory = editorAdaptersFactoryService; _vsWorkspace = vsWorkspace; _rdt = new Lazy<RunningDocumentTable>(() => new RunningDocumentTable(_serviceProvider)); _vsSolution = (IVsSolution)_serviceProvider.GetService(typeof(SVsSolution)); AnalyzerService = analyzerService; uint solutionEventsCookie; if (ErrorHandler.Succeeded(_vsSolution.AdviseSolutionEvents(this, out solutionEventsCookie))) { _solutionEventsCookie = solutionEventsCookie; } }