From cc1bfaad1de818a28d5bd660b6b3640344104fc5 Mon Sep 17 00:00:00 2001 From: Elie Richa Date: Wed, 18 Oct 2023 15:53:49 +0000 Subject: [PATCH] Rename vscode launch configurations to meaningful names --- .vscode/launch.json | 70 ++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 39 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 350b1f731..4c31c5b3c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,35 +4,7 @@ "version": "0.2.0", "configurations": [ { - "name": "(gdb) Attach", - "type": "cppdbg", - "request": "attach", - "program": "${workspaceFolder}/integration/vscode/ada/x64/linux/ada_language_server", - "processId": "${command:pickProcess}", - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ] - }, - { - "type": "gdb", - "request": "launch", - "name": "Launch Program", - "target": ".obj/server/ada_language_server", - "cwd": "${workspaceRoot}", - "valuesFormatting": "parseText" - }, - { - "name": "Launch Extension", + "name": "(vscode) Launch vscode with the Ada extension", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -67,15 +39,7 @@ } }, { - "name": "Launch Extension Testsuite", - "type": "node", - "request": "launch", - "cwd": "${workspaceFolder}/integration/vscode/ada/", - "runtimeExecutable": "npm", - "runtimeArgs": ["run-script", "test"] - }, - { - "name": "General Testsuite", + "name": "(vscode) Run testsuite 'general'", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -109,7 +73,7 @@ "internalConsoleOptions": "openOnSessionStart" }, { - "name": "GNATtest Integration Testsuite", + "name": "(vscode) Run testsuite 'gnattest'", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -142,6 +106,34 @@ "preLaunchTask": "npm: pretest", // Switch to Debug Console to see test results "internalConsoleOptions": "openOnSessionStart" + }, + { + "name": "(npm) Launch all vscode tests with npm", + "type": "node", + "request": "launch", + "cwd": "${workspaceFolder}/integration/vscode/ada/", + "runtimeExecutable": "npm", + "runtimeArgs": ["run-script", "test"] + }, + { + "name": "(gdb) Attach", + "type": "cppdbg", + "request": "attach", + "program": "${workspaceFolder}/integration/vscode/ada/x64/linux/ada_language_server", + "processId": "${command:pickProcess}", + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] } ], "inputs": [