MCPcopy Create free account
hub / github.com/Marus/cortex-debug / resetOrResartChained

Method resetOrResartChained

src/frontend/extension.ts:644–656  ·  view source on GitHub ↗
(e: vscode.DebugSessionCustomEvent, type: 'reset' | 'restart')

Source from the content-addressed store, hash-verified

642 }
643
644 private resetOrResartChained(e: vscode.DebugSessionCustomEvent, type: 'reset' | 'restart') {
645 const mySession = CDebugSession.FindSession(e.session);
646 if (mySession && mySession.hasChildren) {
647 mySession.broadcastDFS((s) => {
648 if (s === mySession) { return; }
649 if (s.config.pvtMyConfigFromParent.lifecycleManagedByParent) {
650 s.session.customRequest('reset-device', type).then(() => {
651 }, (reason) => {
652 });
653 }
654 }, false);
655 }
656 }
657
658 private getWsFolder(folder: string, def: vscode.WorkspaceFolder, childName): vscode.WorkspaceFolder {
659 if (folder) {

Callers 1

receivedCustomEventMethod · 0.95

Calls 3

FindSessionMethod · 0.80
broadcastDFSMethod · 0.80
customRequestMethod · 0.65

Tested by

no test coverage detected