1 write to _project
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
72_project = project;
31 references to _project
Microsoft.CodeAnalysis.Workspaces (31)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (31)
30/// This class is otherwise free to operate on private members of <see cref="_project"/> if needed.</remarks> 92_project._projectSystemProjectFactory.CreateFileTextLoader(fullPath), 106var documentId = DocumentId.CreateNewId(_project.Id, fullPath); 117using (_project._gate.DisposableWait()) 131_project._documentWatchedFiles.Add(documentId, _project._documentFileChangeContext.EnqueueWatchingFile(fullPath)); 133if (_project._activeBatchScopes > 0) 139_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => 141_project._projectSystemProjectFactory.AddDocumentToDocumentsNotFromFiles_NoLock(documentInfo.Id); 149_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => _documentAddAction(w, documentInfo)); 150_project._projectSystemProjectFactory.RaiseOnDocumentsAddedMaybeAsync(useAsync: false, [fullPath]).VerifyCompleted(); 187using (_project._gate.DisposableWait()) 202if (_project._documentWatchedFiles.TryGetValue(documentId, out var watchedFile)) 205_project._documentWatchedFiles.Remove(documentId); 216if (_documentAlreadyInWorkspace(_project._projectSystemProjectFactory.Workspace.CurrentSolution, documentId)) 218if (_project._activeBatchScopes > 0) 224_project._projectSystemProjectFactory.ApplyChangeToWorkspace(w => 228_project._projectSystemProjectFactory.RemoveDocumentToDocumentsNotFromFiles_NoLock(documentId); 247using (_project._gate.DisposableWait()) 268using (_project._gate.DisposableWait()) 276using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false)) 279if (_project.HasBeenRemoved) 299documentsToChange.Add((documentId, new WorkspaceFileTextLoader(_project._projectSystemProjectFactory.SolutionServices, filePath, defaultEncoding: null))); 310await _project._projectSystemProjectFactory.ApplyBatchChangeToWorkspaceAsync((solutionChanges, projectUpdateState) => 314if (!_project._projectSystemProjectFactory.Workspace.IsDocumentOpen(documentId)) 337using (_project._gate.DisposableWait()) 358if (_project._activeBatchScopes > 0) 364_project._projectSystemProjectFactory.ApplyChangeToWorkspace(_project.Id, solution => solution.WithProjectDocumentsOrder(_project.Id, documentIds.ToImmutable())); 385addDocumentChangeKind, removeDocuments, removeDocumentChangeKind, _project.Id, _documentsAddedInBatch.ToImmutableArray(),