Skip to content

Commit 047a457

Browse files
committed
Add launch configuration for also debugging MicroProfile extension
- It is sometimes necessary to debug both the Quarkus and MicroProfile project folders at once - extensionDevelopmentPath option may be provided multiple times, permitting the debugging of multiple extensions at once - The new configuration assumes a contributor has placed the vscode-quarkus & vscode-microprofile project folders under the same folder - Update CONTRIBUTING document Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
1 parent 9cb7a2d commit 047a457

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.vscode/launch.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@
2121
],
2222
"preLaunchTask": "npm: watch"
2323
},
24+
{
25+
"name": "Run Extension with MicroProfile sources",
26+
"type": "extensionHost",
27+
"request": "launch",
28+
"runtimeExecutable": "${execPath}",
29+
"args": [
30+
"--extensionDevelopmentPath=${workspaceFolder}",
31+
"--extensionDevelopmentPath=${workspaceFolder}/../vscode-microprofile"
32+
],
33+
"env": {
34+
"VSCODE_REDHAT_TELEMETRY_DEBUG": "true"
35+
},
36+
"outFiles": [
37+
"${workspaceFolder}/dist/**/*.js",
38+
"${workspaceFolder}/../vscode-microprofile/dist/**/*.js"
39+
],
40+
"preLaunchTask": "npm: watch"
41+
},
2442
{
2543
"name": "Extension Tests",
2644
"type": "extensionHost",

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ In addition to `npm run build`, there are two more build scripts:
266266
"Launch Extension (vscode-quarkus)" at the top left.
267267
![](images/runExtension.png)
268268

269+
To run vscode-quarkus along with changes within vscode-microprofile, select run "Run Extension with MicroProfile sources" at the top left.
270+
![](images/runExtensionWithMicroProfile.png)
271+
272+
This assumes both projects are located within the same parent folder.
273+
269274
### Testing vscode-quarkus
270275
There are two types of tests written for vscode-quarkus:
271276
the [integration tests](https://code.visualstudio.com/api/working-with-extensions/testing-extension) and the UI tests.
16.6 KB
Loading

0 commit comments

Comments
 (0)