Skip to content

Commit 23e5fed

Browse files
authored
fix(vscodePlugin): 修复 F5 启动扩展的调试任务配置 (#1747)
1 parent 4f8ea67 commit 23e5fed

2 files changed

Lines changed: 35 additions & 37 deletions

File tree

packages/vscodePlugin/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"outFiles": [
1616
"${workspaceFolder}/dist/**/*.js"
1717
],
18-
"preLaunchTask": "yarn:watch"
18+
"preLaunchTask": "build:extension"
1919
}
2020
]
2121
}
Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,35 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
31
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "yarn:watch",
8-
"type": "npm",
9-
"script": "watch",
10-
"problemMatcher": {
11-
"owner": "rspack",
12-
"fileLocation": ["relative", "${workspaceFolder}"],
13-
"pattern": {
14-
"regexp": "^(.*):(\\d+):(\\d+):\\s+(error|warning):\\s+(.*)$",
15-
"file": 1,
16-
"line": 2,
17-
"column": 3,
18-
"severity": 4,
19-
"message": 5
20-
},
21-
"background": {
22-
"activeOnStart": true,
23-
"beginsPattern": "^\\s*Compiling",
24-
"endsPattern": "^\\s*(Successfully|Failed)"
25-
}
26-
},
27-
"isBackground": true,
28-
"presentation": {
29-
"reveal": "never"
30-
},
31-
"group": {
32-
"kind": "build",
33-
"isDefault": true
34-
}
35-
}
36-
]
37-
}
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build:cherry-markdown",
6+
"type": "shell",
7+
"command": "test -f ../cherry-markdown/dist/cherry-markdown.min.css && test -f ../cherry-markdown/dist/cherry-markdown.esm.js || yarn workspace cherry-markdown build",
8+
"options": {
9+
"cwd": "${workspaceFolder}/../.."
10+
},
11+
"presentation": {
12+
"reveal": "silent",
13+
"panel": "shared",
14+
"focus": false
15+
},
16+
"problemMatcher": []
17+
},
18+
{
19+
"label": "build:extension",
20+
"type": "npm",
21+
"script": "build",
22+
"dependsOn": ["build:cherry-markdown"],
23+
"dependsOrder": "sequence",
24+
"problemMatcher": [],
25+
"presentation": {
26+
"reveal": "silent",
27+
"panel": "shared"
28+
},
29+
"group": {
30+
"kind": "build",
31+
"isDefault": true
32+
}
33+
}
34+
]
35+
}

0 commit comments

Comments
 (0)