File tree Expand file tree Collapse file tree 7 files changed +2429
-6
lines changed Expand file tree Collapse file tree 7 files changed +2429
-6
lines changed Original file line number Diff line number Diff line change @@ -37,4 +37,5 @@ fixtures-test/
37
37
fixtures-test- * /
38
38
.rslib /
39
39
tests-dist /
40
- .vscode-test /
40
+ .vscode-test /
41
+ packages /vscode /* .vsix
Original file line number Diff line number Diff line change
1
+ name : Release VS Code Extension
2
+
3
+ on :
4
+ workflow_dispatch : {}
5
+ push :
6
+ tags :
7
+ - ' v*'
8
+ - ' vscode-v*'
9
+
10
+ jobs :
11
+ release :
12
+ runs-on : ubuntu-latest
13
+ defaults :
14
+ run :
15
+ working-directory : packages/vscode
16
+ steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Setup Node.js
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : 20
24
+
25
+ - name : Install dependencies
26
+ run : npm ci
27
+
28
+ - name : Typecheck
29
+ run : npm run typecheck
30
+
31
+ - name : Unit tests
32
+ run : npm run test:unit
33
+
34
+ - name : Build
35
+ run : npm run build
36
+
37
+ - name : Package VSIX
38
+ run : npx vsce package
39
+
40
+ - name : Upload VSIX artifact
41
+ uses : actions/upload-artifact@v4
42
+ with :
43
+ name : rstest-vsix
44
+ path : packages/vscode/*.vsix
45
+
46
+ - name : Publish to VS Code Marketplace
47
+ if : ${{ secrets.VSCE_PAT != '' }}
48
+ env :
49
+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
50
+ run : npx vsce publish
51
+
52
+ - name : Create GitHub Release (tag push only)
53
+ if : startsWith(github.ref, 'refs/tags/')
54
+ uses : softprops/action-gh-release@v2
55
+ with :
56
+ files : packages/vscode/*.vsix
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 38
38
}
39
39
},
40
40
"scripts" : {
41
- "vscode:prepublish" : " npm run build" ,
42
41
"build" : " rslib build" ,
43
42
"lint" : " biome check . --diagnostic-level=warn" ,
44
43
"build:local" : " SOURCEMAP=true rslib build" ,
45
44
"test:e2e" : " cross-env FORCE_COLOR=1 tsc -p tsconfig.test.json && cross-env FORCE_COLOR=1 node ./tests-dist/runTest.js" ,
46
45
"test:unit" : " rstest" ,
47
46
"test" : " npm run test:unit && npm run test:e2e" ,
48
47
"typecheck" : " tsc --noEmit" ,
49
- "watch" : " rslib build --watch"
48
+ "watch" : " rslib build --watch" ,
49
+ "package:vsix" : " npm run build && vsce package" ,
50
+ "publish:vsce" : " vsce publish"
50
51
},
51
52
"devDependencies" : {
52
53
"@rsbuild/core" : " 1.5.0" ,
60
61
"@types/ws" : " ^8.18.1" ,
61
62
"@vscode/test-cli" : " ^0.0.11" ,
62
63
"@vscode/test-electron" : " ^2.5.2" ,
64
+ "@vscode/vsce" : " 3.6.0" ,
63
65
"get-port" : " ^7.1.0" ,
64
66
"glob" : " ^7.1.4" ,
65
67
"mocha" : " ^11.7.2" ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class Rstest {
104
104
private setupTestController ( ) {
105
105
const runHandler = (
106
106
request : vscode . TestRunRequest ,
107
- cancellation : vscode . CancellationToken ,
107
+ _cancellation : vscode . CancellationToken ,
108
108
) => {
109
109
if ( request . continuous ) {
110
110
vscode . window . showInformationMessage (
You can’t perform that action at this time.
0 commit comments