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

Method handleDidChange

internal/lsp/server.go:1329–1332  ·  view source on GitHub ↗
(ctx context.Context, params *lsproto.DidChangeTextDocumentParams)

Source from the content-addressed store, hash-verified

1327}
1328
1329func (s *Server) handleDidChange(ctx context.Context, params *lsproto.DidChangeTextDocumentParams) error {
1330 s.session.DidChangeFile(ctx, params.TextDocument.Uri, params.TextDocument.Version, params.ContentChanges)
1331 return nil
1332}
1333
1334func (s *Server) handleDidSave(ctx context.Context, params *lsproto.DidSaveTextDocumentParams) error {
1335 s.session.DidSaveFile(ctx, params.TextDocument.Uri)

Callers

nothing calls this directly

Calls 1

DidChangeFileMethod · 0.80

Tested by

no test coverage detected