Skip to content

Commit b99b638

Browse files
authored
chore: add vscode config (#6)
This PR adds config files for VS Code-like IDEs, including extension suggestions, formatting configuration, and dev tasks.
1 parent c599023 commit b99b638

File tree

4 files changed

+133
-0
lines changed

4 files changed

+133
-0
lines changed

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"ms-vscode.extension-test-runner",
5+
"biomejs.biome"
6+
]
7+
}

.vscode/launch.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
9+
"outFiles": ["${workspaceFolder}/out/**/*.js"],
10+
"preLaunchTask": "${defaultBuildTask}"
11+
}
12+
]
13+
}

.vscode/settings.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"javascript.preferences.importModuleSpecifierEnding": "js",
3+
"js/ts.implicitProjectConfig.target": "ESNext",
4+
"typescript.tsc.autoDetect": "off",
5+
"typescript.enablePromptUseWorkspaceTsdk": true,
6+
"typescript.tsdk": "node_modules/typescript/lib",
7+
"typescript.preferences.importModuleSpecifier": "project-relative",
8+
"typescript.preferences.importModuleSpecifierEnding": "js",
9+
"typescript.preferences.preferTypeOnlyAutoImports": true,
10+
"editor.defaultFormatter": "biomejs.biome",
11+
"editor.formatOnSave": true,
12+
"editor.codeActionsOnSave": {
13+
"source.fixAll.eslint": "explicit",
14+
"source.fixAll.biome": "explicit",
15+
"quickfix.biome": "explicit"
16+
}
17+
}

.vscode/tasks.json

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "watch",
6+
"dependsOn": [
7+
"npm: watch:localstack-web-mock-server",
8+
"npm: watch:esbuild"
9+
],
10+
"presentation": {
11+
"reveal": "never"
12+
},
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
}
17+
},
18+
{
19+
"type": "npm",
20+
"script": "watch:esbuild",
21+
"group": "build",
22+
"problemMatcher": {
23+
"severity": "error",
24+
"applyTo": "closedDocuments",
25+
"source": "esbuild",
26+
"fileLocation": "relative",
27+
"pattern": [
28+
{
29+
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
30+
"severity": 1,
31+
"message": 2
32+
},
33+
{
34+
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
35+
"file": 1,
36+
"line": 2,
37+
"column": 3
38+
}
39+
],
40+
"background": {
41+
"activeOnStart": true,
42+
"beginsPattern": {
43+
"regexp": "\\[watch\\] build started"
44+
},
45+
"endsPattern": {
46+
"regexp": "\\[watch\\] build finished"
47+
}
48+
}
49+
},
50+
"isBackground": true,
51+
"label": "npm: watch:esbuild",
52+
"presentation": {
53+
"group": "watch",
54+
"reveal": "never"
55+
}
56+
},
57+
{
58+
"type": "npm",
59+
"script": "watch:localstack-web-mock-server",
60+
"group": "build",
61+
"isBackground": true,
62+
"problemMatcher": {
63+
"severity": "error",
64+
"applyTo": "closedDocuments",
65+
"fileLocation": "relative",
66+
"pattern": [
67+
{
68+
"regexp": "^[✘▲] \\[([A-Z]+)\\] (.+)",
69+
"severity": 1,
70+
"message": 2
71+
},
72+
{
73+
"regexp": "^(?:\\t| {4})(?!\\s)([^:]+)(?::([0-9]+))?(?::([0-9]+))?:$",
74+
"file": 1,
75+
"line": 2,
76+
"column": 3
77+
}
78+
],
79+
"background": {
80+
"activeOnStart": true,
81+
"beginsPattern": {
82+
"regexp": "Server starting"
83+
},
84+
"endsPattern": {
85+
"regexp": "Server started"
86+
}
87+
}
88+
},
89+
"label": "npm: watch:localstack-web-mock-server",
90+
"presentation": {
91+
"group": "watch",
92+
"reveal": "never"
93+
}
94+
}
95+
]
96+
}

0 commit comments

Comments
 (0)