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)
298if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.Workspace.CurrentSolution, documentId)) 350if (_project._projectSystemProjectFactory.Workspace.CurrentSolution.GetDocument(documentId) != null) 435if (!_project._projectSystemProjectFactory.Workspace.IsDocumentOpen(documentId))
Workspace\ProjectSystem\ProjectSystemProject.cs (7)
277TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 510private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 669_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); 1321return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1329var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1374if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1420_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (13)
49public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 236action(Workspace); 247action(Workspace); 258action(Workspace); 270var projectUpdateState = action(Workspace, _projectUpdateState); 285Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 330var (didUpdate, newSolution) = await Workspace.SetCurrentSolutionAsync( 349Workspace.ClearDocumentData(documentId); 397project = Workspace.CurrentSolution.GetRequiredProject(projectId); 470Workspace.SetCurrentSolution( 471solution => Workspace.CreateSolution( 479Workspace.ClearOpenDocuments(); 896this.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true);