18 references to Document
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
CodeFixes\CodeFixServiceTests.cs (3)
382
TextDocumentKind documentKind = TextDocumentKind.
Document
)
392
TextDocumentKind documentKind = TextDocumentKind.
Document
)
401
TextDocumentKind.
Document
=> project.Documents.Single(),
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
562
TextDocumentKind.
Document
=> document.Project.Solution.WithDocumentTextLoader(document.Id, loader, mode).GetRequiredDocument(document.Id),
Microsoft.CodeAnalysis.Workspaces (6)
CodeFixes\ExportCodeFixProviderAttribute.cs (2)
20
private 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)
19
private 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)
61
case TextDocumentKind.
Document
:
Workspace\Solution\Document.cs (1)
47
: base(project, state, TextDocumentKind.
Document
)
Microsoft.VisualStudio.LanguageServices (8)
Preview\PreviewUpdater.PreviewDialogWorkspace.cs (1)
29
case TextDocumentKind.
Document
:
Preview\TopLevelChange.cs (2)
129
case TextDocumentKind.
Document
:
156
case TextDocumentKind.
Document
:
ProjectSystem\VisualStudioWorkspaceImpl.cs (5)
759
=> AddDocumentCore(info, text, TextDocumentKind.
Document
);
809
case TextDocumentKind.
Document
:
985
var extension = documentKind == TextDocumentKind.
Document
? GetPreferredExtension(documentId) : Path.GetExtension(documentName);
1040
case TextDocumentKind.
Document
:
1051
=> RemoveDocumentCore(documentId, TextDocumentKind.
Document
);