1 write to Workspace
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
84Workspace = 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)
287TryReportCompilationThrownAway(_projectSystemProjectFactory.Workspace.CurrentSolution, Id); 502private bool HasBeenRemoved => !_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id); 661_projectSystemProjectFactory.Workspace.EnqueueUpdateSourceGeneratorVersion(projectId: null, forceRegeneration: true); 1339return _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences.Contains(projectReference); 1347var projectReferencesInWorkspace = _projectSystemProjectFactory.Workspace.CurrentSolution.GetRequiredProject(Id).AllProjectReferences; 1386if (!_projectSystemProjectFactory.Workspace.CurrentSolution.ContainsProject(Id)) 1427_projectSystemProjectFactory.Workspace.OnProjectRemoved(Id);
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (12)
48public SolutionServices SolutionServices => this.Workspace.Services.SolutionServices; 223action(Workspace); 234action(Workspace); 245action(Workspace); 257var projectUpdateState = action(Workspace, _projectUpdateState); 272Workspace.SetCurrentSolution(solutionTransformation, WorkspaceChangeKind.ProjectChanged, projectId); 317var (didUpdate, newSolution) = await Workspace.SetCurrentSolutionAsync( 336Workspace.ClearDocumentData(documentId); 390project = Workspace.CurrentSolution.GetRequiredProject(projectId); 458Workspace.SetCurrentSolution( 459solution => Workspace.CreateSolution( 467Workspace.ClearOpenDocuments();