Added session-cleanup VSCode settings.json

Share your experience and thoughts about WAPT here / Come here and talk about your experience with Wapt, your opinion and your wishes
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is provided on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version (1.8.2 / 2.0 / 2.1 / 2.2 / etc.) AS WELL AS the Enterprise / Discovery edition.
* Specify the server OS (Linux / Windows) and version (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine (Windows 7 / 10)
. * As with any community forum, support is provided voluntarily by members. If you require sales support, you can contact the Tranquil IT sales department at 02.40.97.57.55
Answer
stan
Messages: 17
Registration: May 26, 2025 - 10:16 p.m.

April 21, 2026 - 09:35

Good morning,

Here is a suggestion for adding the "session-cleanup" function to the settings.json file:

Code: Select all

{
    "version": "0.2.4",
    "configurations": [
        {
            "name": "WAPT: install",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "install",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "linux": {
                "sudo": true
            },
            "osx": {
                "sudo": true
            },
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: install-force",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "install",
                "--no-ide",
                "--force",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "linux": {
                "sudo": true
            },
            "osx": {
                "sudo": true
            },
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: remove",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "remove",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "linux": {
                "sudo": true
            },
            "osx": {
                "sudo": true
            },
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: uninstall",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "uninstall",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "linux": {
                "sudo": true
            },
            "osx": {
                "sudo": true
            },
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: session-setup",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "session-setup",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: session-cleanup",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "session-cleanup",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: audit",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "audit",
                "-f",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "linux": {
                "sudo": true
            },
            "osx": {
                "sudo": true
            },
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        },
        {
            "name": "WAPT: update-package",
            "type": "python",
            "request": "launch",
            "justMyCode": false,
            "program": "${config:python.wapt-get}",
            "args": [
                "update-package-sources",
                "--no-ide",
                "${workspaceFolder}"
            ],
            "console": "integratedTerminal",
            "python": "${command:python.interpreterPath}",
            "pythonArgs": [
                "-I",
                "-B"
            ]
        }
    ]
}
Would it be possible to add it permanently to WAPT?

Thanks in advance :D

Sincerely,

Stan
Answer