Skip to content

Commit c59023c

Browse files
committed
Merge branch 'topic/vscode-launch-configs' into 'master'
Rename vscode launch configurations to meaningful names See merge request eng/ide/ada_language_server!1406
2 parents 814fe42 + cc1bfaa commit c59023c

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed

.vscode/launch.json

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,7 @@
44
"version": "0.2.0",
55
"configurations": [
66
{
7-
"name": "(gdb) Attach",
8-
"type": "cppdbg",
9-
"request": "attach",
10-
"program": "${workspaceFolder}/integration/vscode/ada/x64/linux/ada_language_server",
11-
"processId": "${command:pickProcess}",
12-
"MIMode": "gdb",
13-
"setupCommands": [
14-
{
15-
"description": "Enable pretty-printing for gdb",
16-
"text": "-enable-pretty-printing",
17-
"ignoreFailures": true
18-
},
19-
{
20-
"description": "Set Disassembly Flavor to Intel",
21-
"text": "-gdb-set disassembly-flavor intel",
22-
"ignoreFailures": true
23-
}
24-
]
25-
},
26-
{
27-
"type": "gdb",
28-
"request": "launch",
29-
"name": "Launch Program",
30-
"target": ".obj/server/ada_language_server",
31-
"cwd": "${workspaceRoot}",
32-
"valuesFormatting": "parseText"
33-
},
34-
{
35-
"name": "Launch Extension",
7+
"name": "(vscode) Launch vscode with the Ada extension",
368
"type": "extensionHost",
379
"request": "launch",
3810
"runtimeExecutable": "${execPath}",
@@ -67,15 +39,7 @@
6739
}
6840
},
6941
{
70-
"name": "Launch Extension Testsuite",
71-
"type": "node",
72-
"request": "launch",
73-
"cwd": "${workspaceFolder}/integration/vscode/ada/",
74-
"runtimeExecutable": "npm",
75-
"runtimeArgs": ["run-script", "test"]
76-
},
77-
{
78-
"name": "General Testsuite",
42+
"name": "(vscode) Run testsuite 'general'",
7943
"type": "extensionHost",
8044
"request": "launch",
8145
"runtimeExecutable": "${execPath}",
@@ -109,7 +73,7 @@
10973
"internalConsoleOptions": "openOnSessionStart"
11074
},
11175
{
112-
"name": "GNATtest Integration Testsuite",
76+
"name": "(vscode) Run testsuite 'gnattest'",
11377
"type": "extensionHost",
11478
"request": "launch",
11579
"runtimeExecutable": "${execPath}",
@@ -142,6 +106,34 @@
142106
"preLaunchTask": "npm: pretest",
143107
// Switch to Debug Console to see test results
144108
"internalConsoleOptions": "openOnSessionStart"
109+
},
110+
{
111+
"name": "(npm) Launch all vscode tests with npm",
112+
"type": "node",
113+
"request": "launch",
114+
"cwd": "${workspaceFolder}/integration/vscode/ada/",
115+
"runtimeExecutable": "npm",
116+
"runtimeArgs": ["run-script", "test"]
117+
},
118+
{
119+
"name": "(gdb) Attach",
120+
"type": "cppdbg",
121+
"request": "attach",
122+
"program": "${workspaceFolder}/integration/vscode/ada/x64/linux/ada_language_server",
123+
"processId": "${command:pickProcess}",
124+
"MIMode": "gdb",
125+
"setupCommands": [
126+
{
127+
"description": "Enable pretty-printing for gdb",
128+
"text": "-enable-pretty-printing",
129+
"ignoreFailures": true
130+
},
131+
{
132+
"description": "Set Disassembly Flavor to Intel",
133+
"text": "-gdb-set disassembly-flavor intel",
134+
"ignoreFailures": true
135+
}
136+
]
145137
}
146138
],
147139
"inputs": [

0 commit comments

Comments
 (0)