22 references to AdditionalDocument
Microsoft.CodeAnalysis.EditorFeatures (1)
Preview\AbstractPreviewFactoryService.cs (1)
516Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (8)
CodeFixes\CodeFixServiceTests.cs (5)
402TextDocumentKind.AdditionalDocument => project.AdditionalDocuments.Single(), 883GetDocumentAndExtensionManager(tuple.analyzerService, workspace, out var txtDocument, out var extensionManager, analyzerReference, documentKind: TextDocumentKind.AdditionalDocument); 900GetDocumentAndExtensionManager(tuple.analyzerService, workspace2, out var logDocument, out extensionManager, analyzerReference, documentKind: TextDocumentKind.AdditionalDocument); 962DocumentKinds = [nameof(TextDocumentKind.AdditionalDocument)], 972DocumentKinds = [nameof(TextDocumentKind.AdditionalDocument)])]
CodeRefactorings\CodeRefactoringServiceTest.cs (3)
247if (document.Kind == TextDocumentKind.AdditionalDocument) 259DocumentKinds = [nameof(TextDocumentKind.AdditionalDocument), nameof(TextDocumentKind.AnalyzerConfigDocument)], 269DocumentKinds = [nameof(TextDocumentKind.AdditionalDocument), nameof(TextDocumentKind.AnalyzerConfigDocument)])]
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
564TextDocumentKind.AdditionalDocument => document.Project.Solution.WithAdditionalDocumentTextLoader(document.Id, loader, mode).GetRequiredAdditionalDocument(document.Id),
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
16DocumentKinds = [nameof(TextDocumentKind.AdditionalDocument), nameof(TextDocumentKind.AnalyzerConfigDocument)],
Microsoft.CodeAnalysis.Workspaces (4)
Shared\Extensions\ISolutionExtensions.cs (1)
67case TextDocumentKind.AdditionalDocument:
Workspace\Solution\AdditionalDocument.cs (1)
13: base(project, state, TextDocumentKind.AdditionalDocument)
Workspace\Workspace_Editor.cs (2)
576Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument); 777Debug.Assert(oldDocument.Kind is TextDocumentKind.AdditionalDocument or TextDocumentKind.AnalyzerConfigDocument);
Microsoft.VisualStudio.LanguageServices (7)
Preview\PreviewUpdater.PreviewDialogWorkspace.cs (1)
37case TextDocumentKind.AdditionalDocument:
Preview\TopLevelChange.cs (2)
137case TextDocumentKind.AdditionalDocument: 164case TextDocumentKind.AdditionalDocument:
ProjectSystem\VisualStudioWorkspaceImpl.cs (4)
762=> AddDocumentCore(info, text, TextDocumentKind.AdditionalDocument); 801case TextDocumentKind.AdditionalDocument: 1032case TextDocumentKind.AdditionalDocument: 1054=> RemoveDocumentCore(documentId, TextDocumentKind.AdditionalDocument);