1 write to Workspace
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
84Workspace = 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)
252TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 485private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 644_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); 1166return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1174var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1219if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1257_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (13)
49public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 241action(Workspace); 252action(Workspace); 263action(Workspace); 275var projectUpdateState = action(Workspace, _projectUpdateState); 290Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 335var (didUpdate, newSolution) = await Workspace.SetCurrentSolutionAsync( 354Workspace.ClearDocumentData(documentId); 402project = Workspace.CurrentSolution.GetRequiredProject(projectId); 475Workspace.SetCurrentSolution( 476solution => Workspace.CreateSolution( 484Workspace.ClearOpenDocuments(); 901this.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true);