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

Method handleDocumentFormat

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

Source from the content-addressed store, hash-verified

1590}
1591
1592func (s *Server) handleDocumentFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentFormattingParams) (lsproto.DocumentFormattingResponse, error) {
1593 return ls.ProvideFormatDocument(
1594 ctx,
1595 params.TextDocument.Uri,
1596 params.Options,
1597 )
1598}
1599
1600func (s *Server) handleDocumentRangeFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentRangeFormattingParams) (lsproto.DocumentRangeFormattingResponse, error) {
1601 return ls.ProvideFormatDocumentRange(

Callers

nothing calls this directly

Calls 1

ProvideFormatDocumentMethod · 0.80

Tested by

no test coverage detected