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