Skip to content

Commit 0b0dd73

Browse files
committed
chore: use tsgo in development (#5860)
1 parent 784dd56 commit 0b0dd73

28 files changed

+2164
-1990
lines changed

.github/workflows/extension-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: pnpm install --frozen-lockfile
2727

2828
- name: Build
29-
run: pnpm run build && pnpm --filter volar run build:prod
29+
working-directory: extensions/vscode
30+
run: npm run build
3031

3132
- name: Publish to Open VSX
3233
id: publish_ovsx

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [22, 24]
11+
node-version: [24]
1212
os: [macos-latest, windows-latest, ubuntu-latest]
1313

1414
steps:
@@ -23,5 +23,4 @@ jobs:
2323
cache: pnpm
2424

2525
- run: pnpm install --frozen-lockfile
26-
- run: pnpm run build
27-
- run: pnpm run test
26+
- run: npm run test

.github/workflows/update-html-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
# update data
2727
- name: Update HTML Data
28-
run: cd packages/language-service && pnpm run update-html-data
28+
run: cd packages/language-service && npm run update-html-data
2929

3030
# commit
3131
- name: Commit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ node_modules
33
*.tsbuildinfo
44
*.vsix
55

6+
extensions/vscode/out
67
packages/*/*.d.ts
78
packages/*/*.js
89
packages/*/*.map

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"recommendations": [
33
"dprint.dprint",
4-
"johnsoncodehk.vscode-tsslint"
4+
"johnsoncodehk.vscode-tsslint",
5+
"typescriptteam.native-preview"
56
]
67
}

.vscode/launch.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
"outFiles": [
1616
"${workspaceRoot}/**/*.js"
1717
],
18-
"preLaunchTask": {
19-
"type": "npm",
20-
"script": "watch"
21-
}
18+
"preLaunchTask": "watch"
2219
},
2320
{
2421
"name": "Launch Web Client",
@@ -33,10 +30,7 @@
3330
"outFiles": [
3431
"${workspaceRoot}/**/*.js"
3532
],
36-
"preLaunchTask": {
37-
"type": "npm",
38-
"script": "watch"
39-
}
33+
"preLaunchTask": "watch"
4034
},
4135
{
4236
"name": "Attach to Language Server",

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"vue.server.path": "packages/language-server",
3-
"typescript.tsdk": "node_modules/typescript/lib",
2+
"typescript.experimental.useTsgo": true,
43
"dprint.path": "node_modules/dprint/dprint",
54
"[javascript]": {
65
"editor.defaultFormatter": "dprint.dprint"

.vscode/tasks.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,33 @@
22
"version": "2.0.0",
33
"tasks": [
44
{
5-
"type": "npm",
6-
"script": "compile",
7-
"group": "build",
8-
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
5+
"label": "build",
6+
"type": "shell",
7+
"command": "npm run build",
8+
"group": {
9+
"kind": "build",
10+
"isDefault": true
1111
},
1212
"problemMatcher": [
1313
"$tsc"
14-
]
14+
],
15+
"presentation": {
16+
"reveal": "always",
17+
"panel": "shared"
18+
}
1519
},
1620
{
17-
"type": "npm",
18-
"script": "watch",
21+
"label": "watch",
22+
"type": "shell",
23+
"command": "npm run watch",
1924
"isBackground": true,
20-
"group": {
21-
"kind": "build",
22-
"isDefault": true
23-
},
25+
"group": "build",
26+
"problemMatcher": [
27+
"$tsc-watch"
28+
],
2429
"presentation": {
25-
"panel": "dedicated",
26-
"reveal": "never"
27-
},
28-
"problemMatcher": {
29-
"pattern": {
30-
"regexp": "__________"
31-
},
32-
"background": {
33-
"activeOnStart": true,
34-
"beginsPattern": "> rolldown",
35-
"endsPattern": "Waiting for changes..."
36-
}
30+
"reveal": "always",
31+
"panel": "shared"
3732
}
3833
}
3934
]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ If you want to work on the volar extension follow these commands to set up your
7474
git clone https://github.com/vuejs/language-tools.git
7575
cd language-tools
7676
pnpm install
77-
pnpm run build
77+
run build
7878
```
7979

8080
The recommended way to develop the volar extension is to use the [Debug Tools](https://code.visualstudio.com/Docs/editor/debugging) provided by VSCode.

extensions/vscode/.vscodeignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
**/*.ts
1+
node_modules
2+
src
3+
out
24
tests
35
tsconfig.json
6+
tsconfig.tsbuildinfo
7+
rolldown.config.ts

0 commit comments

Comments
 (0)