kondratyev-nv / vscode-python-test-adapter

Python Test Adapter for the VS Code Test Explorer

Home Page:https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

launch.json reports that '"request": "test",' is invalid, wants "attach" instead.

MarximusMaximus opened this issue · comments

When adding

        {
            "name": "Python: Debug Test (PythonTestExplorer)",
            "type": "python",
            "request": "test",
            "justMyCode": false,
        }

to launch.json, VSCode complains that "test" is an invalid valid for "request". It wants to use "attach" instead. Please support checking for either string, so as to be backwards compatible (test) but also to stop VSCode from complaining (attach).

Screen Shot 2022-04-07 at 15 36 30

Thank you.

@MarximusMaximus I've added support for "purpose": ["debug-test"] and any "request" to detect a valid debug configuration. Please, update to version 0.7.1 and let me know if this works for you.

Seems to work. Thank you!