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

Method getCurrentArgs

src/frontend/extension.ts:684–696  ·  view source on GitHub ↗
(session: vscode.DebugSession)

Source from the content-addressed store, hash-verified

682 }
683
684 private getCurrentArgs(session: vscode.DebugSession): ConfigurationArguments | vscode.DebugConfiguration {
685 if (!session) {
686 session = vscode.debug.activeDebugSession;
687 if (!session || (session.type !== 'cortex-debug') ) {
688 return undefined;
689 }
690 }
691 const ourSession = CDebugSession.FindSession(session);
692 if (ourSession) {
693 return ourSession.config;
694 }
695 return session.configuration;
696 }
697
698 private getCurrentProp(session: vscode.DebugSession, prop: string) {
699 const args = this.getCurrentArgs(session);

Callers 1

getCurrentPropMethod · 0.95

Calls 1

FindSessionMethod · 0.80

Tested by

no test coverage detected