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

Method handleDidSave

internal/lsp/server.go:1334–1337  ·  view source on GitHub ↗
(ctx context.Context, params *lsproto.DidSaveTextDocumentParams)

Source from the content-addressed store, hash-verified

1332}
1333
1334func (s *Server) handleDidSave(ctx context.Context, params *lsproto.DidSaveTextDocumentParams) error {
1335 s.session.DidSaveFile(ctx, params.TextDocument.Uri)
1336 return nil
1337}
1338
1339func (s *Server) handleDidClose(ctx context.Context, params *lsproto.DidCloseTextDocumentParams) error {
1340 s.session.DidCloseFile(ctx, params.TextDocument.Uri)

Callers

nothing calls this directly

Calls 1

DidSaveFileMethod · 0.80

Tested by

no test coverage detected