Skip to content

Commit dccd118

Browse files
Charles XuCharles Xu
authored andcommitted
init repo
0 parents  commit dccd118

27 files changed

Lines changed: 4448 additions & 0 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
out
2+
dist
3+
node_modules
4+
.vscode-test/
5+
*.vsix

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
enable-pre-post-scripts = true

.vscode-test.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from '@vscode/test-cli';
2+
3+
export default defineConfig({
4+
files: 'out/test/**/*.test.js',
5+
});

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["dbaeumer.vscode-eslint", "connor4312.esbuild-problem-matchers", "ms-vscode.extension-test-runner"]
5+
}

.vscode/launch.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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 Without Other Extensions",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--disable-extensions",
14+
"--extensionDevelopmentPath=${workspaceFolder}",
15+
// Directory for Extension Testing
16+
"${workspaceFolder}/test-fixture"
17+
],
18+
"outFiles": [
19+
"${workspaceFolder}/dist/**/*.js"
20+
],
21+
"preLaunchTask": "${defaultBuildTask}",
22+
},
23+
{
24+
"name": "Run Extension",
25+
"type": "extensionHost",
26+
"request": "launch",
27+
"args": [
28+
"--extensionDevelopmentPath=${workspaceFolder}",
29+
// Directory for Extension Testing
30+
"${workspaceFolder}/test-fixture"
31+
],
32+
"outFiles": [
33+
"${workspaceFolder}/dist/**/*.js"
34+
],
35+
"preLaunchTask": "${defaultBuildTask}",
36+
},
37+
{
38+
"name": "Extension Tests",
39+
"type": "extensionHost",
40+
"request": "launch",
41+
"runtimeExecutable": "${execPath}",
42+
"args": [
43+
"--disable-extensions",
44+
"--extensionDevelopmentPath=${workspaceFolder}",
45+
"--extensionTestsPath=${workspaceFolder}/out/test/extension"
46+
],
47+
"outFiles": [
48+
"${workspaceFolder}/out/test/**/*.js"
49+
]
50+
}
51+
]
52+
}

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5+
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6+
},
7+
"search.exclude": {
8+
"out": true, // set this to false to include "out" folder in search results
9+
"dist": true // set this to false to include "dist" folder in search results
10+
},
11+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12+
"typescript.tsc.autoDetect": "off",
13+
"editor.selectionHighlight": true
14+
}

.vscode/tasks.json

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
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": "terminate and clean",
8+
"dependsOrder": "sequence",
9+
"dependsOn": [
10+
"terminate task",
11+
"clean",
12+
],
13+
"group": "build",
14+
"presentation": {
15+
"reveal": "never",
16+
}
17+
},
18+
{
19+
"label": "terminate task",
20+
"type": "shell",
21+
"command": "echo ${input:terminateAll}",
22+
"options": {
23+
"shell": {
24+
"executable": "/bin/bash",
25+
"args": [
26+
"-c"
27+
]
28+
}
29+
},
30+
"problemMatcher": [],
31+
"presentation": {
32+
"reveal": "always",
33+
"close": true
34+
}
35+
},
36+
{
37+
"label": "clean",
38+
"type": "shell",
39+
"command": "pnpm exec rimraf out dist",
40+
"problemMatcher": [],
41+
"group": "build",
42+
"presentation": {
43+
"reveal": "silent",
44+
"close": true
45+
}
46+
},
47+
{
48+
"label": "watch",
49+
"dependsOn": [
50+
"npm: watch:tsc",
51+
"npm: watch:esbuild"
52+
],
53+
"presentation": {
54+
"reveal": "never"
55+
},
56+
"group": {
57+
"kind": "build",
58+
"isDefault": true
59+
}
60+
},
61+
{
62+
"type": "npm",
63+
"script": "watch:esbuild",
64+
"group": "build",
65+
"problemMatcher": "$esbuild-watch",
66+
"isBackground": true,
67+
"label": "npm: watch:esbuild",
68+
"presentation": {
69+
"group": "watch",
70+
"reveal": "never"
71+
}
72+
},
73+
{
74+
"type": "npm",
75+
"script": "watch:tsc",
76+
"group": "build",
77+
"problemMatcher": "$tsc-watch",
78+
"isBackground": true,
79+
"label": "npm: watch:tsc",
80+
"presentation": {
81+
"group": "watch",
82+
"reveal": "never"
83+
}
84+
},
85+
{
86+
"type": "npm",
87+
"script": "watch-tests",
88+
"problemMatcher": "$tsc-watch",
89+
"isBackground": true,
90+
"presentation": {
91+
"reveal": "never",
92+
"group": "watchers"
93+
},
94+
"group": "build"
95+
},
96+
{
97+
"label": "tasks: watch-tests",
98+
"dependsOn": [
99+
"npm: watch",
100+
"npm: watch-tests"
101+
],
102+
"problemMatcher": []
103+
}
104+
],
105+
"inputs": [
106+
{
107+
"id": "terminateAll",
108+
"type": "command",
109+
"command": "workbench.action.tasks.terminate",
110+
"args": "terminateAll" // 终止所有运行任务;如果只想终止特定任务,可手动选择
111+
}
112+
]
113+
}

.vscodeignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.vscode/**
2+
.vscode-test/**
3+
out/**
4+
node_modules/**
5+
src/**
6+
.gitignore
7+
.yarnrc
8+
esbuild.js
9+
vsc-extension-quickstart.md
10+
**/tsconfig.json
11+
**/eslint.config.mjs
12+
**/*.map
13+
**/*.ts
14+
**/.vscode-test.*
15+
pnpm-lock.yaml
16+
pnpm-workspace.yaml

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Change Log
2+
3+
## [0.1.0]
4+
5+
- Initial release

NOTES.md

Whitespace-only changes.

0 commit comments

Comments
 (0)