Skip to content

Commit 211eaa6

Browse files
authoredDec 4, 2024
Migrate volar based (#5)
1 parent d8da550 commit 211eaa6

38 files changed

+2740
-6803
lines changed
 

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
out
22
dist
33
node_modules
4-
.vscode-test/
4+
*.tsbuildinfo
55
*.vsix

‎.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link-workspace-packages=true

‎.vscode-test.mjs

-5
This file was deleted.

‎.vscode/extensions.json

-5
This file was deleted.

‎.vscode/launch.json

+33-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.js"
17-
],
18-
"preLaunchTask": "${defaultBuildTask}"
19-
}
20-
]
21-
}
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
{
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "Launch Client",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": [
11+
"--extensionDevelopmentPath=${workspaceRoot}/packages/vscode",
12+
"--folder-uri=${workspaceRoot}/sample",
13+
],
14+
"outFiles": [
15+
"${workspaceRoot}/packages/vscode/dist/*.js"
16+
],
17+
"preLaunchTask": {
18+
"type": "npm",
19+
"script": "watch"
20+
}
21+
},
22+
{
23+
"name": "Attach to Server",
24+
"type": "node",
25+
"request": "attach",
26+
"port": 6009,
27+
"restart": true,
28+
"outFiles": [
29+
"${workspaceRoot}/packages/vscode/dist/*.js"
30+
]
31+
},
32+
],
33+
}

‎.vscode/settings.json

-13
This file was deleted.

‎.vscode/tasks.json

+46-64
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,46 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
3-
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"label": "watch",
8-
"dependsOn": [
9-
"npm: watch:tsc",
10-
"npm: watch:esbuild"
11-
],
12-
"presentation": {
13-
"reveal": "never"
14-
},
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
}
19-
},
20-
{
21-
"type": "npm",
22-
"script": "watch:esbuild",
23-
"group": "build",
24-
"problemMatcher": "$esbuild-watch",
25-
"isBackground": true,
26-
"label": "npm: watch:esbuild",
27-
"presentation": {
28-
"group": "watch",
29-
"reveal": "never"
30-
}
31-
},
32-
{
33-
"type": "npm",
34-
"script": "watch:tsc",
35-
"group": "build",
36-
"problemMatcher": "$tsc-watch",
37-
"isBackground": true,
38-
"label": "npm: watch:tsc",
39-
"presentation": {
40-
"group": "watch",
41-
"reveal": "never"
42-
}
43-
},
44-
{
45-
"type": "npm",
46-
"script": "watch-tests",
47-
"problemMatcher": "$tsc-watch",
48-
"isBackground": true,
49-
"presentation": {
50-
"reveal": "never",
51-
"group": "watchers"
52-
},
53-
"group": "build"
54-
},
55-
{
56-
"label": "tasks: watch-tests",
57-
"dependsOn": [
58-
"npm: watch",
59-
"npm: watch-tests"
60-
],
61-
"problemMatcher": []
62-
}
63-
]
64-
}
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"script": "compile",
7+
"group": "build",
8+
"presentation": {
9+
"panel": "dedicated",
10+
"reveal": "never"
11+
},
12+
"problemMatcher": {
13+
"pattern": {
14+
"regexp": "__________"
15+
},
16+
"background": {
17+
"beginsPattern": "building\\.\\.\\.",
18+
"endsPattern": "finished\\."
19+
}
20+
}
21+
},
22+
{
23+
"type": "npm",
24+
"script": "watch",
25+
"isBackground": true,
26+
"group": {
27+
"kind": "build",
28+
"isDefault": true
29+
},
30+
"presentation": {
31+
"panel": "dedicated",
32+
"reveal": "never"
33+
},
34+
"problemMatcher": {
35+
"pattern": {
36+
"regexp": "__________"
37+
},
38+
"background": {
39+
"activeOnStart": true,
40+
"beginsPattern": "building\\.\\.\\.",
41+
"endsPattern": "watching\\.\\.\\."
42+
}
43+
}
44+
}
45+
]
46+
}

0 commit comments

Comments
 (0)
Please sign in to comment.