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

Method SetConnection

internal/api/callbackfs.go:70–73  ·  view source on GitHub ↗

SetConnection sets the RPC connection for callbacks. This must be called after the transport connection is established but before any filesystem operations that need callbacks.

(ctx context.Context, conn Conn)

Source from the content-addressed store, hash-verified

68// This must be called after the transport connection is established
69// but before any filesystem operations that need callbacks.
70func (fs *callbackFS) SetConnection(ctx context.Context, conn Conn) {
71 fs.ctx = ctx
72 fs.conn = conn
73}
74
75// isEnabled returns true if the named callback is enabled.
76func (fs *callbackFS) isEnabled(name string) bool {

Callers 1

RunMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected