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

Method handleDidOpen

internal/lsp/server.go:1324–1327  ·  view source on GitHub ↗
(ctx context.Context, params *lsproto.DidOpenTextDocumentParams)

Source from the content-addressed store, hash-verified

1322}
1323
1324func (s *Server) handleDidOpen(ctx context.Context, params *lsproto.DidOpenTextDocumentParams) error {
1325 s.session.DidOpenFile(ctx, params.TextDocument.Uri, params.TextDocument.Version, params.TextDocument.Text, params.TextDocument.LanguageId)
1326 return nil
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)

Callers

nothing calls this directly

Calls 1

DidOpenFileMethod · 0.80

Tested by

no test coverage detected