1 instantiation of DocumentOnTypeFormattingParams
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Formatting\FormatDocumentOnTypeTests.cs (1)
188
=>
new
()
9 references to DocumentOnTypeFormattingParams
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\Formatting\FormatDocumentOnTypeHandler.cs (3)
24
internal sealed class FormatDocumentOnTypeHandler : ILspServiceDocumentRequestHandler<
DocumentOnTypeFormattingParams
, TextEdit[]?>
38
public TextDocumentIdentifier GetTextDocumentIdentifier(
DocumentOnTypeFormattingParams
request) => request.TextDocument;
41
DocumentOnTypeFormattingParams
request,
Protocol\Methods.Document.cs (1)
564
public static readonly LspRequest<
DocumentOnTypeFormattingParams
, TextEdit[]?> TextDocumentOnTypeFormatting = new(TextDocumentOnTypeFormattingName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Formatting\FormatDocumentOnTypeTests.cs (2)
175
var results = await testLspServer.ExecuteRequestAsync<LSP.
DocumentOnTypeFormattingParams
, LSP.TextEdit[]>(
183
private static LSP.
DocumentOnTypeFormattingParams
CreateDocumentOnTypeFormattingParams(
Microsoft.VisualStudio.LanguageServices.Xaml (3)
Implementation\LanguageServer\Handler\Formatting\FormatDocumentOnTypeHandler.cs (3)
21
internal sealed class FormatDocumentOnTypeHandler : ILspServiceRequestHandler<
DocumentOnTypeFormattingParams
, TextEdit[]>
32
public TextDocumentIdentifier GetTextDocumentIdentifier(
DocumentOnTypeFormattingParams
request) => request.TextDocument;
34
public async Task<TextEdit[]> HandleRequestAsync(
DocumentOnTypeFormattingParams
request, RequestContext context, CancellationToken cancellationToken)