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)
33.LastCommittedSolution 61Assert.Empty(session.LastCommittedSolution.Test_GetDocumentStates());
Microsoft.CodeAnalysis.Features (12)
EditAndContinue\DebuggingSession.cs (9)
485var (oldDocument, oldDocumentState) = await LastCommittedSolution.GetDocumentAndStateAsync(document, cancellationToken).ConfigureAwait(false); 494var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 569LastCommittedSolution.CommitChanges(solution, solutionUpdate.StaleProjects); 621LastCommittedSolution.CommitChanges(solution, staleProjects: pendingSolutionUpdate.StaleProjects.RemoveRange(projectsToRebuildTransitive)); 736var oldProject = LastCommittedSolution.GetProject(projectId); 757var (oldDocument, _) = await LastCommittedSolution.GetDocumentAndStateAsync(newDocument, cancellationToken).ConfigureAwait(false); 858var oldProject = LastCommittedSolution.GetProject(newProject.Id); 891var (oldUnmappedDocument, _) = await LastCommittedSolution.GetDocumentAndStateAsync(newUnmappedDocument, cancellationToken).ConfigureAwait(false); 898var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, newUnmappedDocument.Project.Solution, oldUnmappedDocument, newUnmappedDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (3)
621var (oldDocument, oldDocumentState) = await DebuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(newDocument, cancellationToken, reloadOutOfSyncDocument: true).ConfigureAwait(false); 659: await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false); 1090var oldSolution = DebuggingSession.LastCommittedSolution;
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueTestVerifier.cs (1)
579session.LastCommittedSolution.Test_SetDocumentState(document.Id, state);
Microsoft.CodeAnalysis.Features.UnitTests (8)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (7)
138Assert.Empty(debuggingSession.LastCommittedSolution.Test_GetDocumentStates()); 1538var (document, state) = await debuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(solution.GetRequiredDocument(documentId), CancellationToken.None); 1776Assert.True(debuggingSession.LastCommittedSolution.StaleProjects.ContainsKey(projectId)); 1793Assert.False(debuggingSession.LastCommittedSolution.StaleProjects.ContainsKey(projectId)); 3070var (doc, state) = await debuggingSession.LastCommittedSolution.GetDocumentAndStateAsync(currentDocument, CancellationToken.None); 4059var text = await debuggingSession.LastCommittedSolution.GetRequiredProject(document1.Project.Id).GetRequiredDocument(document1.Id).GetTextAsync(); 4862debuggingSession.LastCommittedSolution.Test_SetDocumentState(document.Id, CommittedSolution.DocumentState.MatchesBuildOutput);
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
52var matchingDocuments = session.LastCommittedSolution.Test_GetDocumentStates();