1 write to _projectSystemProjectFactory
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
169_projectSystemProjectFactory = projectSystemProjectFactory;
42 references to _projectSystemProjectFactory
Microsoft.CodeAnalysis.Workspaces (42)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (16)
95var textLoader = _project._projectSystemProjectFactory.CreateFileTextLoader(fullPath); 123_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => _documentAddAction(w, documentInfo)); 124_project._projectSystemProjectFactory.RaiseOnDocumentsAddedMaybeAsync(useAsync: false, [fullPath]).VerifyCompleted(); 181_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => 183_project._projectSystemProjectFactory.AddDocumentToDocumentsNotFromFiles_NoLock(documentInfo.Id); 229_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => _documentAddAction(w, documentInfo)); 286if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.Workspace.CurrentSolution, documentId)) 294_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => _documentRemoveAction(w, documentId)); 338if (_project._projectSystemProjectFactory.Workspace.CurrentSolution.GetDocument(documentId) != null) 346_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => 354_project._projectSystemProjectFactory.RemoveDocumentToDocumentsNotFromFiles_NoLock(documentId); 408documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.SolutionServices, filePath, defaultEncoding: null))); 419await _project._projectSystemProjectFactory.ApplyBatchChangeToWorkspaceAsync((solutionChanges, projectUpdateState) => 423if (!_project._projectSystemProjectFactory.Workspace.IsDocumentOpen(documentId)) 468_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => 528_project._projectSystemProjectFactory.ApplyChangeToWorkspace(_project.Id, solution => solution.WithProjectDocumentsOrder(_project.Id, documentIds.ToImmutable()));
Workspace\ProjectSystem\ProjectSystemProject.cs (26)
202_projectSystemProjectFactory.WorkspaceListener, 211_documentFileChangeContext = _projectSystemProjectFactory.FileChangeWatcher.CreateContext(watchedDirectories); 267var telemetryService = _projectSystemProjectFactory.SolutionServices.GetService<IWorkspaceTelemetryService>(); 271var workspaceStatusService = _projectSystemProjectFactory.SolutionServices.GetRequiredService<IWorkspaceStatusService>(); 285TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 338_projectSystemProjectFactory.SolutionClosing, _projectSystemProjectFactory.SolutionServices); 343projectUpdateState = AddProjectOutputPath_NoLock(solutionChanges, Id, newValue, projectUpdateState, _projectSystemProjectFactory.SolutionServices); 492set => _projectSystemProjectFactory.SetMaxLanguageVersion(Id, value); 497set => _projectSystemProjectFactory.SetDependencyNodeTargetIdentifier(Id, value); 500private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 577await _projectSystemProjectFactory.ApplyBatchChangeToWorkspaceMaybeAsync(useAsync, (solutionChanges, projectUpdateState) => 645await _projectSystemProjectFactory.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnDocumentOpened(documentId, textContainer)).ConfigureAwait(false); 648await _projectSystemProjectFactory.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnAdditionalDocumentOpened(documentId, textContainer)).ConfigureAwait(false); 651await _projectSystemProjectFactory.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnAnalyzerConfigDocumentOpened(documentId, textContainer)).ConfigureAwait(false); 655await _projectSystemProjectFactory.RaiseOnDocumentsAddedMaybeAsync(useAsync, documentFileNamesAdded).ConfigureAwait(false); 659_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); 1303return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1311var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1350if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1371_projectSystemProjectFactory.ApplyChangeToWorkspace(w => 1382_projectSystemProjectFactory.RemoveProjectFromTrackingMaps_NoLock(Id); 1387_projectSystemProjectFactory.RemoveSolution_NoLock(); 1391_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id); 1399_projectSystemProjectFactory.FileWatchedPortableExecutableReferenceFactory.StopWatchingReference(reference.FilePath!, referenceToTrack: reference); 1402_projectSystemProjectFactory.FileWatchedAnalyzerReferenceFactory.StopWatchingReference(reference.FullPath!, referenceToTrack: reference);