1 write to LastCommittedSolution
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\DebuggingSession.cs (1)
150LastCommittedSolution = new CommittedSolution(this, solution);
24 references to LastCommittedSolution
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
409var (document, state) = await debuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(document1, CancellationToken.None);
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (2)
HotReloadServiceTests.cs (2)
34.LastCommittedSolution 62Assert.Empty(session.LastCommittedSolution.Test_GetDocumentStates());
Microsoft.CodeAnalysis.Features (12)
EditAndContinue\DebuggingSession.cs (9)
486var (oldDocument, oldDocumentState) = await LastCommittedSolution.GetDocumentAndStateAsync(document, cancellationToken).ConfigureAwait(false); 495var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 570LastCommittedSolution.CommitChanges(solution, solutionUpdate.StaleProjects); 622LastCommittedSolution.CommitChanges(solution, staleProjects: pendingSolutionUpdate.StaleProjects.RemoveRange(projectsToRebuildTransitive)); 737var oldProject = LastCommittedSolution.GetProject(projectId); 758var (oldDocument, _) = await LastCommittedSolution.GetDocumentAndStateAsync(newDocument, cancellationToken).ConfigureAwait(false); 859var oldProject = LastCommittedSolution.GetProject(newProject.Id); 892var (oldUnmappedDocument, _) = await LastCommittedSolution.GetDocumentAndStateAsync(newUnmappedDocument, cancellationToken).ConfigureAwait(false); 899var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, newUnmappedDocument.Project.Solution, oldUnmappedDocument, newUnmappedDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (3)
626var (oldDocument, oldDocumentState) = await DebuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(newDocument, cancellationToken, reloadOutOfSyncDocument: true).ConfigureAwait(false); 692var analyses = await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false); 1134var oldSolution = DebuggingSession.LastCommittedSolution;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
588session.LastCommittedSolution.Test_SetDocumentState(document.Id, state);
Microsoft.CodeAnalysis.Features.UnitTests (8)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
138Assert.Empty(debuggingSession.LastCommittedSolution.Test_GetDocumentStates()); 1607var (committedDocument, state) = await debuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(document, CancellationToken.None); 1868Assert.True(debuggingSession.LastCommittedSolution.StaleProjects.ContainsKey(projectId)); 1885Assert.False(debuggingSession.LastCommittedSolution.StaleProjects.ContainsKey(projectId)); 3223var (doc, state) = await debuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(currentDocument, CancellationToken.None); 4219var text = await debuggingSession.LastCommittedSolution.GetRequiredProject(document1.Project.Id).GetRequiredDocument(document1.Id).GetTextAsync(); 5028debuggingSession.LastCommittedSolution.Test_SetDocumentState(document.Id, CommittedSolution.DocumentState.MatchesBuildOutput);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
52var matchingDocuments = session.LastCommittedSolution.Test_GetDocumentStates();