1 write to OldSolution
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceChangeEventArgs.cs (1)
71this.OldSolution = oldSolution ?? throw new ArgumentNullException(nameof(oldSolution));
39 references to OldSolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
1356Assert.Equal(eventArgs[0].OldSolution, eventArgs[1].OldSolution); 1359Assert.Equal(originalText, (await eventArgs[0].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1360Assert.Equal(originalText, (await eventArgs[1].OldSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.EditorFeatures (7)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
250var oldProject = args.OldSolution.GetProject(args.ProjectId);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
61var oldDocument = e.OldSolution.GetDocument(e.DocumentId);
Remote\SolutionChecksumUpdater.cs (1)
137_textChangeQueue.AddWork((e.OldSolution.GetDocument(e.DocumentId), e.NewSolution.GetDocument(e.DocumentId)));
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (1)
34var oldProject = e.OldSolution.GetRequiredProject(e.ProjectId);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (3)
65var workspace = events[0].OldSolution.Workspace; 66Contract.ThrowIfTrue(events.Any(e => e.OldSolution.Workspace != workspace || e.NewSolution.Workspace != workspace)); 96args.OldSolution, args.NewSolution,
Microsoft.CodeAnalysis.Features (14)
Diagnostics\BuildOnlyDiagnosticsService.cs (1)
50ClearDiagnostics(e.OldSolution.GetProject(e.ProjectId));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (5)
247EnqueueSolutionChangedEvent(args.OldSolution, args.NewSolution, eventName); 273EnqueueProjectChangedEvent(args.OldSolution, args.NewSolution, args.ProjectId, eventName); 278EnqueueFullProjectEvent(args.OldSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentRemoved, eventName); 289EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName); 294EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentRemoved, eventName);
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
20/// <param name="oldSolutionChecksum"><inheritdoc cref="WorkspaceChangeEventArgs.OldSolution"/></param>
SolutionCrawler\WorkCoordinator.cs (6)
206EnqueueFullSolutionEvent(args.OldSolution, InvocationReasons.SolutionRemoved, eventName); 211EnqueueSolutionChangedEvent(args.OldSolution, args.NewSolution, eventName); 221EnqueueFullProjectEvent(args.OldSolution, args.ProjectId, InvocationReasons.DocumentRemoved, eventName); 227EnqueueProjectChangedEvent(args.OldSolution, args.NewSolution, args.ProjectId, eventName); 237EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, InvocationReasons.DocumentRemoved, eventName); 243EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName);
Workspace\BackgroundParser.cs (1)
83var oldProject = args.OldSolution.GetProject(args.ProjectId);
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\WorkspaceChangeEventArgs.cs (3)
14/// these events contain the same <see cref="OldSolution"/>, and they all contain the same 24/// If linked documents are being changed, there may be multiple events with the same <see cref="OldSolution"/> 32/// If linked documents are being changed, there may be multiple events with the same <see cref="OldSolution"/>
Microsoft.VisualStudio.LanguageServices (9)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
85var oldDocument = e.OldSolution.GetDocument(e.DocumentId);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (7)
245_taskQueue.ScheduleTask("OnSolutionAdded", () => e.OldSolution.ProjectIds.Do(p => ClearBuildOnlyProjectErrors(e.OldSolution, p)), _disposalToken); 251_taskQueue.ScheduleTask("OnSolutionChanged", () => e.OldSolution.ProjectIds.Do(p => ClearBuildOnlyProjectErrors(e.OldSolution, p)), _disposalToken); 256_taskQueue.ScheduleTask("OnProjectChanged", () => ClearBuildOnlyProjectErrors(e.OldSolution, e.ProjectId), _disposalToken); 265_taskQueue.ScheduleTask("OnDocumentRemoved", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken); 277_taskQueue.ScheduleTask("OnDocumentChanged", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken);
Workspace\SourceGeneratedFileManager.cs (1)
416var oldProject = e.OldSolution.GetProject(_documentIdentity.DocumentId.ProjectId);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\ProjectCodeModelFactory.cs (1)
178var changes = e.OldSolution.GetChanges(e.NewSolution);
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\EditorVerifierInProcess.cs (1)
221codeActionLogger.Messages.Add($"{e.OldSolution.WorkspaceVersion} to {e.NewSolution.WorkspaceVersion}: {e.Kind} {e.DocumentId}");