77 references to TextDocumentKind
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (16)
CodeFixes\CodeFixServiceTests.cs (11)
382TextDocumentKind documentKind = TextDocumentKind.Document)
392TextDocumentKind documentKind = TextDocumentKind.Document)
401TextDocumentKind.Document => project.Documents.Single(),
402TextDocumentKind.AdditionalDocument => project.AdditionalDocuments.Single(),
403TextDocumentKind.AnalyzerConfigDocument => project.AnalyzerConfigDocuments.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)])]
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.TestAnalyzerReference (2)
Microsoft.CodeAnalysis.Workspaces (21)
Microsoft.VisualStudio.LanguageServices (30)
ProjectSystem\VisualStudioWorkspaceImpl.cs (19)
759=> AddDocumentCore(info, text, TextDocumentKind.Document);
762=> AddDocumentCore(info, text, TextDocumentKind.AdditionalDocument);
767AddDocumentCore(info, text, TextDocumentKind.AnalyzerConfigDocument);
770private void AddDocumentCore(DocumentInfo info, SourceText initialText, TextDocumentKind documentKind)
801case TextDocumentKind.AdditionalDocument:
805case TextDocumentKind.AnalyzerConfigDocument:
809case TextDocumentKind.Document:
875TextDocumentKind documentKind,
894TextDocumentKind documentKind,
966TextDocumentKind.AnalyzerConfigDocument);
979TextDocumentKind documentKind)
985var extension = documentKind == TextDocumentKind.Document ? GetPreferredExtension(documentId) : Path.GetExtension(documentName);
1001private void RemoveDocumentCore(DocumentId documentId, TextDocumentKind documentKind)
1032case TextDocumentKind.AdditionalDocument:
1036case TextDocumentKind.AnalyzerConfigDocument:
1040case TextDocumentKind.Document:
1051=> RemoveDocumentCore(documentId, TextDocumentKind.Document);
1054=> RemoveDocumentCore(documentId, TextDocumentKind.AdditionalDocument);
1057=> RemoveDocumentCore(documentId, TextDocumentKind.AnalyzerConfigDocument);