(session: vscode.DebugSession)
| 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); |
no test coverage detected