1 write to Workspace
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
85Workspace = workspace;
23 references to Workspace
Microsoft.CodeAnalysis.Workspaces (23)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
219if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.Workspace.CurrentSolution, documentId)) 271if (_project._projectSystemProjectFactory.Workspace.CurrentSolution.GetDocument(documentId) != null) 356if (!_project._projectSystemProjectFactory.Workspace.IsDocumentOpen(documentId))
Workspace\ProjectSystem\ProjectSystemProject.cs (7)
254TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 487private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 646_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); 1168return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1176var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1221if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1259_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (13)
49public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 242action(Workspace); 253action(Workspace); 264action(Workspace); 276var projectUpdateState = action(Workspace, _projectUpdateState); 291Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 336var (didUpdate, newSolution) = await Workspace.SetCurrentSolutionAsync( 355Workspace.ClearDocumentData(documentId); 403project = Workspace.CurrentSolution.GetRequiredProject(projectId); 476Workspace.SetCurrentSolution( 477solution => Workspace.CreateSolution( 485Workspace.ClearOpenDocuments(); 902this.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true);