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

Method generateAPIPipePath

internal/lsp/server.go:1800–1805  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1798}
1799
1800func (s *Server) generateAPIPipePath() string {
1801 // Generate a high-entropy path using time and random source
1802 now := time.Now().UnixNano()
1803 rnd := rand.Uint64()
1804 return api.GeneratePipePath(fmt.Sprintf("tsgo-api-%x-%x", now, rnd))
1805}
1806
1807func (s *Server) removeAPISession(id string) {
1808 s.apiSessionsMu.Lock()

Callers 1

Calls 2

GeneratePipePathFunction · 0.92
NowMethod · 0.65

Tested by

no test coverage detected