2 instantiations of TextDocumentContentResult
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\TextDocumentContent\TextDocumentContentHandler.cs (2)
37return new TextDocumentContentResult { Text = contentText }; 41return new TextDocumentContentResult
29 references to TextDocumentContentResult
IdeBenchmarks (2)
Lsp\LspSourceGeneratorBenchmarks.cs (2)
128var sgResult = await testServer.ExecuteRequestAsync<LSP.TextDocumentContentParams, LSP.TextDocumentContentResult>(
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\TextDocumentContent\TextDocumentContentHandler.cs (2)
19internal sealed class TextDocumentContentHandler() : ILspServiceDocumentRequestHandler<TextDocumentContentParams, TextDocumentContentResult> 27public async Task<TextDocumentContentResult> HandleRequestAsync(TextDocumentContentParams request, RequestContext context, CancellationToken cancellationToken)
Protocol\Methods.Navigation.cs (1)
295public static readonly LspRequest<TextDocumentContentParams, TextDocumentContentResult> WorkspaceTextDocumentContent = new(WorkspaceTextDocumentContentName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (24)
Diagnostics\PullDiagnosticTests.cs (2)
792var originalSgText = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 810var newSgText = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri);
Workspaces\SourceGeneratedDocumentTests.cs (22)
43var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 58var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 82var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 143var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 158var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 164var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 184var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 196var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 227var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 235var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 260var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 267var refreshedResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 306var refreshedResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 364var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 378var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 446var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 470var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 481var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 504var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 517var secondResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 537var thirdResult = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratorDocumentUri); 556var result = await testLspServer.GetSourceGeneratedDocumentTextAsync(sourceGeneratedDocumentUri);