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

Method handleInitialize

internal/api/session.go:815–820  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

813}
814
815func (s *Session) handleInitialize(ctx context.Context) (*InitializeResponse, error) {
816 return &InitializeResponse{
817 UseCaseSensitiveFileNames: s.projectSession.FS().UseCaseSensitiveFileNames(),
818 CurrentDirectory: s.projectSession.GetCurrentDirectory(),
819 }, nil
820}
821
822// handleUpdateSnapshot creates a new snapshot, optionally opening or closing
823// projects and files. With no args, it adopts the latest LSP state. Opens and

Callers 1

HandleRequestMethod · 0.95

Calls 3

FSMethod · 0.65
GetCurrentDirectoryMethod · 0.65

Tested by

no test coverage detected