1 write to _projectSystemProjectFactory
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
169
_projectSystemProjectFactory
= projectSystemProjectFactory;
42 references to _projectSystemProjectFactory
Microsoft.CodeAnalysis.Workspaces (42)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (16)
95
var textLoader = _project.
_projectSystemProjectFactory
.CreateFileTextLoader(fullPath);
123
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w => _documentAddAction(w, documentInfo));
124
_project.
_projectSystemProjectFactory
.RaiseOnDocumentsAddedMaybeAsync(useAsync: false, [fullPath]).VerifyCompleted();
181
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w =>
183
_project.
_projectSystemProjectFactory
.AddDocumentToDocumentsNotFromFiles_NoLock(documentInfo.Id);
229
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w => _documentAddAction(w, documentInfo));
286
if (_documentAlreadyInWorkspace(_project.
_projectSystemProjectFactory
.Workspace.CurrentSolution, documentId))
294
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w => _documentRemoveAction(w, documentId));
338
if (_project.
_projectSystemProjectFactory
.Workspace.CurrentSolution.GetDocument(documentId) != null)
346
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w =>
354
_project.
_projectSystemProjectFactory
.RemoveDocumentToDocumentsNotFromFiles_NoLock(documentId);
408
documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project.
_projectSystemProjectFactory
.SolutionServices, filePath, defaultEncoding: null)));
419
await _project.
_projectSystemProjectFactory
.ApplyBatchChangeToWorkspaceAsync((solutionChanges, projectUpdateState) =>
423
if (!_project.
_projectSystemProjectFactory
.Workspace.IsDocumentOpen(documentId))
468
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w =>
528
_project.
_projectSystemProjectFactory
.ApplyChangeToWorkspace(_project.Id, solution => solution.WithProjectDocumentsOrder(_project.Id, documentIds.ToImmutable()));
Workspace\ProjectSystem\ProjectSystemProject.cs (26)
202
_projectSystemProjectFactory
.WorkspaceListener,
211
_documentFileChangeContext =
_projectSystemProjectFactory
.FileChangeWatcher.CreateContext(watchedDirectories);
267
var telemetryService =
_projectSystemProjectFactory
.SolutionServices.GetService<IWorkspaceTelemetryService>();
271
var workspaceStatusService =
_projectSystemProjectFactory
.SolutionServices.GetRequiredService<IWorkspaceStatusService>();
285
TryReportCompilationThrownAway(
_projectSystemProjectFactory
.Workspace.CurrentSolution, Id);
338
_projectSystemProjectFactory
.SolutionClosing,
_projectSystemProjectFactory
.SolutionServices);
343
projectUpdateState = AddProjectOutputPath_NoLock(solutionChanges, Id, newValue, projectUpdateState,
_projectSystemProjectFactory
.SolutionServices);
492
set =>
_projectSystemProjectFactory
.SetMaxLanguageVersion(Id, value);
497
set =>
_projectSystemProjectFactory
.SetDependencyNodeTargetIdentifier(Id, value);
500
private bool HasBeenRemoved => !
_projectSystemProjectFactory
.Workspace.CurrentSolution.ContainsProject(Id);
577
await
_projectSystemProjectFactory
.ApplyBatchChangeToWorkspaceMaybeAsync(useAsync, (solutionChanges, projectUpdateState) =>
645
await
_projectSystemProjectFactory
.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnDocumentOpened(documentId, textContainer)).ConfigureAwait(false);
648
await
_projectSystemProjectFactory
.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnAdditionalDocumentOpened(documentId, textContainer)).ConfigureAwait(false);
651
await
_projectSystemProjectFactory
.ApplyChangeToWorkspaceMaybeAsync(useAsync, w => w.OnAnalyzerConfigDocumentOpened(documentId, textContainer)).ConfigureAwait(false);
655
await
_projectSystemProjectFactory
.RaiseOnDocumentsAddedMaybeAsync(useAsync, documentFileNamesAdded).ConfigureAwait(false);
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))
1371
_projectSystemProjectFactory
.ApplyChangeToWorkspace(w =>
1382
_projectSystemProjectFactory
.RemoveProjectFromTrackingMaps_NoLock(Id);
1387
_projectSystemProjectFactory
.RemoveSolution_NoLock();
1391
_projectSystemProjectFactory
.Workspace.OnProjectRemoved(Id);
1399
_projectSystemProjectFactory
.FileWatchedPortableExecutableReferenceFactory.StopWatchingReference(reference.FilePath!, referenceToTrack: reference);
1402
_projectSystemProjectFactory
.FileWatchedAnalyzerReferenceFactory.StopWatchingReference(reference.FullPath!, referenceToTrack: reference);