Page 1 sur 1

Ajout de session-cleanup VSCode settings.json

Publié : 21 avr. 2026 - 09:35
par stan
Bonjour,

Voici une proposition d'ajout de la fonction "session-cleanup" dans le fichier settings.json:

Code : Tout sélectionner

{
    "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"
            ]
        }
    ]
}
Serait-il possible de l'ajouter de façon permanente à WAPT?

Merci d'avance :D

Cordialement,

Stan