Aggiunte le impostazioni di pulizia della sessione in VSCode.json

Condividi qui la tua esperienza e i tuoi pensieri su WAPT / Vieni qui e parla della tua esperienza con Wapt, della tua opinione e dei tuoi desideri
Regole del forum
Regole del forum della community
* Supporto in inglese su www.reddit.com/r/wapt
* Il supporto della community in francese è disponibile su questo forum
* Si prega di anteporre [RISOLTO] al titolo dell'argomento se è stato risolto.
* Si prega di non modificare un argomento contrassegnato con [RISOLTO]. Aprire un nuovo argomento facendo riferimento a quello precedente.
* Specificare la versione di WAPT installata (1.8.2 / 2.0 / 2.1 / 2.2 / ecc.) e l'edizione Enterprise / Discovery.
* Specificare il sistema operativo del server (Linux / Windows) e la versione (Debian Stretch/Buster - CentOS 7 - Windows Server 2012/2016/2019).
* Specificare il sistema operativo della macchina di amministrazione/creazione dei pacchetti (Windows 7 / 10)
. * Come in qualsiasi forum della community, il supporto è fornito volontariamente dai membri. Se hai bisogno di supporto commerciale, puoi contattare il reparto vendite di Tranquil IT al numero 02.40.97.57.55
Risposta
stan
Messaggi: 16
Registrazione: 26 maggio 2025 - 22:16

21 aprile 2026 - 09:35

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
Risposta