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