1 write to DocumentId
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\WorkspaceChangeEventArgs.cs (1)
74this.DocumentId = documentId;
41 references to DocumentId
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Workspaces\WorkspaceTests_EditorFeatures.cs (1)
1354AssertEx.SetEqual(workspace.Projects.SelectMany(p => p.Documents).Select(d => d.Id), eventArgs.Select(e => e.DocumentId));
Microsoft.CodeAnalysis.EditorFeatures (6)
EditAndContinue\PdbMatchingSourceTextProvider.cs (3)
56if (e.DocumentId == null) 61var oldDocument = e.OldSolution.GetDocument(e.DocumentId); 68var newDocument = e.NewSolution.GetDocument(e.DocumentId);
Remote\SolutionChecksumUpdater.cs (2)
137_textChangeQueue.AddWork((e.OldSolution.GetDocument(e.DocumentId), e.NewSolution.GetDocument(e.DocumentId)));
SolutionEvents\HostLegacySolutionEventsWorkspaceEventListener.cs (1)
98service.OnWorkspaceChangedAsync(oldSolutionChecksum, newSolutionChecksum, args.Kind, args.ProjectId, args.DocumentId, cancellationToken),
Microsoft.CodeAnalysis.Features (16)
Diagnostics\BuildOnlyDiagnosticsService.cs (1)
59ClearDiagnostics(e.DocumentId);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (6)
282Contract.ThrowIfNull(args.DocumentId); 283EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentAdded, eventName); 288Contract.ThrowIfNull(args.DocumentId); 289EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName); 293Contract.ThrowIfNull(args.DocumentId); 294EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, UnitTestingInvocationReasons.DocumentRemoved, eventName);
LegacySolutionEvents\IRemoteLegacySolutionEventsAggregationService.cs (1)
24/// <param name="documentId"><inheritdoc cref="WorkspaceChangeEventArgs.DocumentId"/></param>
SolutionCrawler\WorkCoordinator.cs (6)
231Contract.ThrowIfNull(args.DocumentId); 232EnqueueFullDocumentEvent(args.NewSolution, args.DocumentId, InvocationReasons.DocumentAdded, eventName); 236Contract.ThrowIfNull(args.DocumentId); 237EnqueueFullDocumentEvent(args.OldSolution, args.DocumentId, InvocationReasons.DocumentRemoved, eventName); 242Contract.ThrowIfNull(args.DocumentId); 243EnqueueDocumentChangedEvent(args.OldSolution, args.NewSolution, args.DocumentId, eventName);
Workspace\BackgroundParser.cs (2)
74CancelParse(args.DocumentId); 78ParseIfOpen(args.NewSolution.GetDocument(args.DocumentId));
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\SemanticTokens\SemanticTokensRefreshQueue.cs (2)
144if (e.DocumentId is not null && e.Kind is WorkspaceChangeKind.DocumentChanged) 146var document = e.NewSolution.GetRequiredDocument(e.DocumentId);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
WorkspaceTests\AdhocWorkspaceTests.cs (4)
450&& args.DocumentId == originalDoc.Id) 483&& args.DocumentId == originalDoc.Id) 517&& args.DocumentId == originalDoc.Id) 548&& args.DocumentId == originalDoc.Id)
Microsoft.VisualStudio.LanguageServices (5)
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (2)
85var oldDocument = e.OldSolution.GetDocument(e.DocumentId); 86var newDocument = e.NewSolution.GetDocument(e.DocumentId);
TableDataSource\OpenDocumentTracker.cs (1)
106StopTracking(e.DocumentId!);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (2)
265_taskQueue.ScheduleTask("OnDocumentRemoved", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken); 277_taskQueue.ScheduleTask("OnDocumentChanged", () => ClearBuildOnlyDocumentErrors(e.OldSolution, e.ProjectId, e.DocumentId), _disposalToken);
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\ProjectCodeModelFactory.cs (1)
171_documentsToFireEventsFor.AddWork(e.DocumentId!);
SolutionExplorer\DiagnosticItem\BaseDiagnosticAndGeneratorItemSource.cs (1)
149else if (e.DocumentId != null)
Microsoft.VisualStudio.LanguageServices.New.IntegrationTests (1)
InProcess\EditorVerifierInProcess.cs (1)
221codeActionLogger.Messages.Add($"{e.OldSolution.WorkspaceVersion} to {e.NewSolution.WorkspaceVersion}: {e.Kind} {e.DocumentId}");
Microsoft.VisualStudio.LanguageServices.UnitTests (4)
ProjectSystemShim\VisualStudioProjectTests\WorkspaceChangedEventTests.vb (4)
31Assert.Equal(environment.Workspace.CurrentSolution.Projects.Single().DocumentIds.Single(), change.DocumentId) 51Assert.Null(change.DocumentId) 71Assert.Equal(environment.Workspace.CurrentSolution.Projects.Single().AdditionalDocumentIds.Single(), change.DocumentId) 91Assert.Null(change.DocumentId)