MCPcopy Index your code
hub / github.com/Marus/cortex-debug / receivedCustomEvent

Method receivedCustomEvent

src/frontend/extension.ts:461–520  ·  view source on GitHub ↗
(e: vscode.DebugSessionCustomEvent)

Source from the content-addressed store, hash-verified

459 }
460
461 private receivedCustomEvent(e: vscode.DebugSessionCustomEvent) {
462 const session = e.session;
463 if (session.type !== 'cortex-debug') { return; }
464 switch (e.event) {
465 case 'custom-stop':
466 this.receivedStopEvent(e);
467 break;
468 case 'custom-continued':
469 this.receivedContinuedEvent(e);
470 break;
471 case 'swo-configure':
472 this.receivedSWOConfigureEvent(e);
473 break;
474 case 'rtt-configure':
475 this.receivedRTTConfigureEvent(e);
476 break;
477 case 'record-event':
478 this.receivedEvent(e);
479 break;
480 case 'custom-event-post-start-server':
481 this.startChainedConfigs(e, ChainedEvents.POSTSTART);
482 break;
483 case 'custom-event-post-start-gdb':
484 this.startChainedConfigs(e, ChainedEvents.POSTINIT);
485 this.liveWatchProvider?.debugSessionStarted(session);
486 break;
487 case 'custom-event-session-terminating':
488 ServerConsoleLog('Got event for sessions terminating', process.pid);
489 this.endChainedConfigs(e);
490 break;
491 case 'custom-event-session-restart':
492 this.resetOrResartChained(e, 'restart');
493 break;
494 case 'custom-event-session-reset':
495 this.resetOrResartChained(e, 'reset');
496 break;
497 case 'custom-event-popup':
498 const msg = e.body.info?.message;
499 switch (e.body.info?.type) {
500 case 'warning':
501 vscode.window.showWarningMessage(msg);
502 break;
503 case 'error':
504 vscode.window.showErrorMessage(msg);
505 break;
506 default:
507 vscode.window.showInformationMessage(msg);
508 break;
509 }
510 break;
511 case 'custom-event-ports-allocated':
512 this.registerPortsAsUsed(e);
513 break;
514 case 'custom-event-ports-done':
515 this.signalPortsAllocated(e);
516 break;
517 default:
518 break;

Callers

nothing calls this directly

Calls 12

receivedStopEventMethod · 0.95
receivedEventMethod · 0.95
startChainedConfigsMethod · 0.95
endChainedConfigsMethod · 0.95
resetOrResartChainedMethod · 0.95
registerPortsAsUsedMethod · 0.95
signalPortsAllocatedMethod · 0.95
ServerConsoleLogFunction · 0.90
debugSessionStartedMethod · 0.45

Tested by

no test coverage detected