18 references to Document
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (3)
382TextDocumentKind documentKind = TextDocumentKind.Document) 392TextDocumentKind documentKind = TextDocumentKind.Document) 401TextDocumentKind.Document => project.Documents.Single(),
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
562TextDocumentKind.Document => document.Project.Solution.WithDocumentTextLoader(document.Id, loader, mode).GetRequiredDocument(document.Id),
Microsoft.CodeAnalysis.Workspaces (6)
CodeFixes\ExportCodeFixProviderAttribute.cs (2)
20private static readonly string[] s_defaultDocumentKinds = [nameof(TextDocumentKind.Document)]; 38/// By default, the provider supports code fixes only for source documents, <see cref="TextDocumentKind.Document"/>.
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (2)
19private static readonly string[] s_defaultDocumentKinds = [nameof(TextDocumentKind.Document)]; 37/// By default, the provider supports refactorings only for source documents, <see cref="TextDocumentKind.Document"/>.
Shared\Extensions\ISolutionExtensions.cs (1)
61case TextDocumentKind.Document:
Workspace\Solution\Document.cs (1)
47: base(project, state, TextDocumentKind.Document)
Microsoft.VisualStudio.LanguageServices (8)
Preview\PreviewUpdater.PreviewDialogWorkspace.cs (1)
29case TextDocumentKind.Document:
Preview\TopLevelChange.cs (2)
129case TextDocumentKind.Document: 156case TextDocumentKind.Document:
ProjectSystem\VisualStudioWorkspaceImpl.cs (5)
759=> AddDocumentCore(info, text, TextDocumentKind.Document); 809case TextDocumentKind.Document: 985var extension = documentKind == TextDocumentKind.Document ? GetPreferredExtension(documentId) : Path.GetExtension(documentName); 1040case TextDocumentKind.Document: 1051=> RemoveDocumentCore(documentId, TextDocumentKind.Document);