| 144 | |
| 145 | class Session(debug.Session): |
| 146 | def _process_request(self, request): |
| 147 | if request.command == "runInTerminal": |
| 148 | # Capture the raw runInTerminal request before any processing |
| 149 | args_from_request = list(request.arguments.get("args", [])) |
| 150 | captured_run_in_terminal_request.append({ |
| 151 | "args": args_from_request, |
| 152 | "argsCanBeInterpretedByShell": request.arguments.get("argsCanBeInterpretedByShell", False) |
| 153 | }) |
| 154 | return super()._process_request(request) |
| 155 | |
| 156 | def run_in_terminal(self, args, cwd, env): |
| 157 | # Capture the processed args after the framework has handled them |