Pagina 1 di 1

Aggiunte le impostazioni di pulizia della sessione in VSCode.json

Pubblicato: 21 aprile 2026 - 09:35
di Stan
Buongiorno,

Ecco un suggerimento per aggiungere la funzione "session-cleanup" al file settings.json:

Codice: Seleziona tutto

{
    "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"
            ]
        }
    ]
}
Sarebbe possibile aggiungerlo in modo permanente a WAPT?

grazie in anticipo :D

Sinceramente,

Stan