Skip to content

Commit 8b8c818

Browse files
bby mode in vs code run (#1303)
1 parent c9623e3 commit 8b8c818

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ resources/rovo-dev/*
2727
!resources/rovo-dev/script.sh
2828

2929
!.vscode/launch.json.example
30+
!.vscode/tasks.json.example
3031
/.idea/

.vscode/launch.json.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,25 @@
1919
"preLaunchTask": "npm: devcompile",
2020
"envFile": "${workspaceFolder}/.env"
2121
},
22+
{
23+
"name": "Extension (RovoDev BBY)",
24+
"type": "extensionHost",
25+
"request": "launch",
26+
"runtimeExecutable": "${execPath}",
27+
"args": [
28+
"--extensionDevelopmentPath=${workspaceFolder}"
29+
],
30+
"outFiles": [
31+
"${workspaceFolder}/build/**/*.js"
32+
],
33+
"env": {
34+
"ROVODEV_PORT": "8899",
35+
"ROVODEV_ENABLED": "true",
36+
"ROVODEV_BBY": "true",
37+
"ROVODEV_SANDBOX_ID": "bby_sandbox"
38+
},
39+
"preLaunchTask": "Start RovoDev Server"
40+
},
2241
{
2342
// This configuration requires npm run dev to be running externally
2443
// It will pick up the re-compiled extension code but not hot-swap it

.vscode/tasks.json.example

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Start RovoDev Server",
6+
"type": "shell",
7+
"command": "acli rovodev serve 8899",
8+
"isBackground": true,
9+
"problemMatcher": {
10+
"pattern": {
11+
"regexp": "^.*$",
12+
"file": 1,
13+
"location": 2,
14+
"message": 3
15+
},
16+
"background": {
17+
"activeOnStart": true,
18+
"beginsPattern": ".*",
19+
"endsPattern": ".*"
20+
}
21+
}
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)