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

Method handleDidClose

internal/lsp/server.go:1339–1342  ·  view source on GitHub ↗
(ctx context.Context, params *lsproto.DidCloseTextDocumentParams)

Source from the content-addressed store, hash-verified

1337}
1338
1339func (s *Server) handleDidClose(ctx context.Context, params *lsproto.DidCloseTextDocumentParams) error {
1340 s.session.DidCloseFile(ctx, params.TextDocument.Uri)
1341 return nil
1342}
1343
1344func (s *Server) handleDidChangeWatchedFiles(ctx context.Context, params *lsproto.DidChangeWatchedFilesParams) error {
1345 s.session.DidChangeWatchedFiles(ctx, params.Changes)

Callers

nothing calls this directly

Calls 1

DidCloseFileMethod · 0.80

Tested by

no test coverage detected