MCPcopy Index your code
hub / github.com/github/copilot-sdk / _markDisconnected

Method _markDisconnected

nodejs/src/session.ts:340–353  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

338
339 /** @internal */
340 _markDisconnected(): void {
341 this.disconnected = true;
342 this.eventHandlers.clear();
343 this.typedEventHandlers.clear();
344 this.toolHandlers.clear();
345 this.permissionHandler = undefined;
346 this.userInputHandler = undefined;
347 this.elicitationHandler = undefined;
348 this.exitPlanModeHandler = undefined;
349 this.autoModeSwitchHandler = undefined;
350 this.commandHandlers.clear();
351 this.canvases.clear();
352 this.transformCallbacks?.clear();
353 }
354
355 /**
356 * Subscribes to events from this session.

Callers 3

disconnectMethod · 0.95
stopMethod · 0.80
forceStopMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected