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

Method handleDocumentOnTypeFormat

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

Source from the content-addressed store, hash-verified

1607}
1608
1609func (s *Server) handleDocumentOnTypeFormat(ctx context.Context, ls *ls.LanguageService, params *lsproto.DocumentOnTypeFormattingParams) (lsproto.DocumentOnTypeFormattingResponse, error) {
1610 return ls.ProvideFormatDocumentOnType(
1611 ctx,
1612 params.TextDocument.Uri,
1613 params.Options,
1614 params.Position,
1615 params.Ch,
1616 )
1617}
1618
1619func (s *Server) handleWorkspaceSymbol(ctx context.Context, params *lsproto.WorkspaceSymbolParams, reqMsg *lsproto.RequestMessage) (lsproto.WorkspaceSymbolResponse, error) {
1620 var resp lsproto.WorkspaceSymbolResponse

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected