1 write to NewSolution
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceChangeEventArgs.cs (1)
72this.NewSolution = newSolution ?? throw new ArgumentNullException(nameof(newSolution));
31 references to NewSolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Workspaces\WorkspaceTests_EditorFeatures.cs (4)
1428Assert.Equal(eventArgs[0].NewSolution, eventArgs[1].NewSolution); 1433Assert.Equal(updatedText, (await eventArgs[0].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString()); 1434Assert.Equal(updatedText, (await eventArgs[1].NewSolution.GetDocument(originalDocumentId).GetTextAsync().ConfigureAwait(false)).ToString());
Microsoft.CodeAnalysis.EditorFeatures (8)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (2)
285if (args.NewSolution.Workspace != _workspace) 296var newProject = args.NewSolution.GetProject(args.ProjectId);
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
68var newDocument = e.NewSolution.GetDocument(e.DocumentId);
Remote\SolutionChecksumUpdater.cs (1)
153var newDocument = e.NewSolution.GetDocument(e.DocumentId);
Shared\Tagging\EventSources\TaggerEventSources.ParseOptionChangedEventSource.cs (3)
28var newProject = e.NewSolution.GetRequiredProject(e.ProjectId); 32var workspace = e.NewSolution.Workspace; 36var relatedDocumentIds = e.NewSolution.GetRelatedDocumentIds(documentId);
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
74var project = e.OldSolution.GetProject(projectId) ?? e.NewSolution.GetProject(projectId);
Microsoft.CodeAnalysis.Features (9)
ExternalAccess\UnitTesting\LegacySolutionEvents\UnitTestingLegacySolutionEventsListener.cs (1)
50var coordinator = GetCoordinator(args.NewSolution);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (7)
139EnqueueFullSolutionEvent(args.NewSolution, UnitTestingInvocationReasons.DocumentAdded, eventName); 144EnqueueSolutionChangedEvent(args.OldSolution, args.NewSolution, eventName); 154EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.DocumentAdded, eventName); 160EnqueueProjectChangedEvent(args.OldSolution, args.NewSolution, args.ProjectId, eventName); 170EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentAdded, eventName); 176EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName); 194EnqueueFullProjectEvent(args.NewSolution, args.ProjectId, UnitTestingInvocationReasons.AdditionalDocumentChanged, eventName);
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
20/// <param name="newSolutionChecksum"><inheritdoc cref="WorkspaceChangeEventArgs.NewSolution"/></param>
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\AbstractRefreshQueue.cs (1)
82var document = e.NewSolution.GetRequiredDocument(e.DocumentId);
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (3)
75var document = e.NewSolution.GetRequiredDocument(e.DocumentId); 80var document = e.NewSolution.GetRequiredAdditionalDocument(e.DocumentId); 88var newDocument = e.NewSolution.GetRequiredDocument(e.DocumentId);
Microsoft.CodeAnalysis.Workspaces (3)
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.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
86var newDocument = e.NewSolution.GetDocument(e.DocumentId);
Workspace\SourceGeneratedFileManager.cs (2)
431e.NewSolution.GetSourceGeneratorExecutionVersion(projectId)) 438var newProject = e.NewSolution.GetProject(projectId);