Skip to content

Commit 4c8fe51

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 4c8fe51

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ 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+
If the extension depends on changes from the MicroProfile extension that are not released into the Marketplace, or only available locally, select and run "Run Extension with MicroProfile sources" at the top left.
270+
![](images/runExtensionWithMicroProfile.png)
271+
269272
### Testing vscode-quarkus
270273
There are two types of tests written for vscode-quarkus:
271274
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)