1 write to Workspace
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
85Workspace = workspace;
22 references to Workspace
Microsoft.CodeAnalysis.Workspaces (22)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (3)
286if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.Workspace.CurrentSolution, documentId)) 338if (_project._projectSystemProjectFactory.Workspace.CurrentSolution.GetDocument(documentId) != null) 423if (!_project._projectSystemProjectFactory.Workspace.IsDocumentOpen(documentId))
Workspace\ProjectSystem\ProjectSystemProject.cs (7)
285TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 500private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 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)) 1391_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (12)
49public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 224action(Workspace); 235action(Workspace); 246action(Workspace); 258var projectUpdateState = action(Workspace, _projectUpdateState); 273Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 318var (didUpdate, newSolution) = await Workspace.SetCurrentSolutionAsync( 337Workspace.ClearDocumentData(documentId); 391project = Workspace.CurrentSolution.GetRequiredProject(projectId); 459Workspace.SetCurrentSolution( 460solution => Workspace.CreateSolution( 468Workspace.ClearOpenDocuments();