MCPcopy Create free account
hub / github.com/microsoft/typescript-go / handleDocumentRangeFormat

Method handleDocumentRangeFormat

internal/lsp/server.go:1600–1607  ·  view source on GitHub ↗
(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentRangeFormattingParams)

Source from the content-addressed store, hash-verified

1598}
1599
1600func (s *Server) handleDocumentRangeFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentRangeFormattingParams) (lsproto.DocumentRangeFormattingResponse, error) {
1601 return ls.ProvideFormatDocumentRange(
1602 ctx,
1603 params.TextDocument.Uri,
1604 params.Options,
1605 params.Range,
1606 )
1607}
1608
1609func (s *Server) handleDocumentOnTypeFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentOnTypeFormattingParams) (lsproto.DocumentOnTypeFormattingResponse, error) {
1610 return ls.ProvideFormatDocumentOnType(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected