public RProjectLoadHooks(UnconfiguredProject unconfiguredProject
, [ImportMany("Microsoft.VisualStudio.ProjectSystem.Microsoft.VisualStudio.Shell.Interop.IVsProject")] IEnumerable<Lazy<IVsProject>> cpsIVsProjects
, IProjectLockService projectLockService
, IRInteractiveWorkflowProvider workflowProvider
, IInteractiveWindowComponentContainerFactory componentContainerFactory
, IRToolsSettings toolsSettings
, IThreadHandling threadHandling
, ISurveyNewsService surveyNews
, [Import(AllowDefault = true)] IProjectItemDependencyProvider dependencyProvider
, ICoreShell coreShell) {
_unconfiguredProject = unconfiguredProject;
_cpsIVsProjects = cpsIVsProjects;
_projectLockService = projectLockService;
_workflowProvider = workflowProvider;
_toolsSettings = toolsSettings;
_threadHandling = threadHandling;
_surveyNews = surveyNews;
_dependencyProvider = dependencyProvider;
_coreShell = coreShell;
_projectDirectory = unconfiguredProject.GetProjectDirectory();
unconfiguredProject.ProjectRenamedOnWriter += ProjectRenamedOnWriter;
unconfiguredProject.ProjectUnloading += ProjectUnloading;
_fileWatcher = new MsBuildFileSystemWatcher(_projectDirectory, "*", 25, 1000, _coreShell.Services.FileSystem, new RMsBuildFileSystemFilter(), coreShell.Services.Log);
_fileWatcher.Error += FileWatcherError;
Project = new FileSystemMirroringProject(unconfiguredProject, projectLockService, _fileWatcher, _dependencyProvider, coreShell.Services.Log);
}