1 write to NewSolution
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceChangeEventArgs.cs (1)
72this.NewSolution = newSolution ?? throw new ArgumentNullException(nameof(newSolution));
53 references to NewSolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
1357Assert.Equal(eventArgs[0].NewSolution, eventArgs[1].NewSolution); 1362Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1363Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.EditorFeatures (9)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (2)
240if (args.NewSolution.Workspace != _workspace) 251var newProject = args.NewSolution.GetProject(args.ProjectId);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
68var newDocument = e.NewSolution.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 (3)
35var newProject = e.NewSolution.GetRequiredProject(e.ProjectId); 39var workspace = e.NewSolution.Workspace; 43var relatedDocumentIds = e.NewSolution.GetRelatedDocumentIds(documentId);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (2)
66Contract.ThrowIfTrue(events.Any(e => e.OldSolution.Workspace != workspace || e.NewSolution.Workspace != workspace)); 96args.OldSolution, args.NewSolution,
Microsoft.CodeAnalysis.Features (18)
ExternalAccess\UnitTesting\LegacySolutionEvents\UnitTestingLegacySolutionEventsListener.cs (1)
50var coordinator = GetCoordinator(args.NewSolution);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (7)
242EnqueueFullSolutionEvent(args.NewSolution, UnitTestingInvocationReasons.DocumentAdded, eventName); 247EnqueueSolutionChangedEvent(args.OldSolution, args.NewSolution, eventName); 267EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentAdded, eventName); 273EnqueueProjectChangedEvent(args.OldSolution, args.NewSolution, args.ProjectId, eventName); 283EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentAdded, eventName); 289EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName); 307EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.AdditionalDocumentChanged, eventName);
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
21/// <param name="newSolutionChecksum"><inheritdoc cref="WorkspaceChangeEventArgs.NewSolution"/></param>
SolutionCrawler\WorkCoordinator.cs (7)
201EnqueueFullSolutionEvent(args.NewSolution, InvocationReasons.DocumentAdded, eventName); 211EnqueueSolutionChangedEvent(args.OldSolution, args.NewSolution, eventName); 216EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, InvocationReasons.DocumentAdded, eventName); 227EnqueueProjectChangedEvent(args.OldSolution, args.NewSolution, args.ProjectId, eventName); 232EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, InvocationReasons.DocumentAdded, eventName); 243EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName); 256EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, InvocationReasons.AdditionalDocumentChanged, eventName);
Workspace\BackgroundParser.cs (2)
78ParseIfOpen(args.NewSolution.GetDocument(args.DocumentId)); 84var newProject = args.NewSolution.GetProject(args.ProjectId);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (1)
146var document = e.NewSolution.GetRequiredDocument(e.DocumentId);
Microsoft.CodeAnalysis.Workspaces (4)
SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (1)
81var solution = e.NewSolution;
Workspace\WorkspaceChangeEventArgs.cs (3)
15/// <see cref="NewSolution"/>. This is so that we can trigger document change events on all 25/// and <see cref="NewSolution"/>. Note that the workspace starts with its solution set to an empty solution. 33/// and <see cref="NewSolution"/>. Note <see cref="WorkspaceChangeKind.SolutionRemoved"/> replaces the previous
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
VisualStudioMSBuildWorkspaceTests.cs (4)
2222Assert.NotNull(args.NewSolution); 2223Assert.NotSame(originalSolution, args.NewSolution); 2252Assert.NotNull(args.NewSolution); 2253Assert.NotSame(originalSolution, args.NewSolution);
Microsoft.VisualStudio.LanguageServices (7)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
86var newDocument = e.NewSolution.GetDocument(e.DocumentId);
TableDataSource\AbstractTable.cs (3)
41AddTableSourceIfNecessary(e.NewSolution); 45ShutdownSourceIfNecessary(e.NewSolution); 46RemoveTableSourceIfNecessary(e.NewSolution);
TableDataSource\OpenDocumentTracker.cs (2)
98StopTracking(e.NewSolution); 102StopTracking(e.NewSolution, e.ProjectId);
Workspace\SourceGeneratedFileManager.cs (1)
417var newProject = e.NewSolution.GetProject(_documentIdentity.DocumentId.ProjectId);
Microsoft.VisualStudio.LanguageServices.Implementation (5)
CodeModel\ProjectCodeModelFactory.cs (1)
178var changes = e.OldSolution.GetChanges(e.NewSolution);
SolutionExplorer\DiagnosticItem\BaseDiagnosticAndGeneratorItemSource.cs (1)
168var project = e.NewSolution.GetRequiredProject(ProjectId);
SolutionExplorer\DiagnosticItem\CpsDiagnosticItemSource.cs (2)
81if (!e.NewSolution.ContainsProject(ProjectId)) 91var analyzerReference = TryGetAnalyzerReference(e.NewSolution);
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSource.cs (1)
216if (!e.NewSolution.ContainsProject(_parentGeneratorItem.ProjectId))
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\EditorVerifierInProcess.cs (1)
221codeActionLogger.Messages.Add($"{e.OldSolution.WorkspaceVersion} to {e.NewSolution.WorkspaceVersion}: {e.Kind} {e.DocumentId}");