Skip to content

Commit 5c55515

Browse files
committed
Re-apply part of 00ec57a, npm script changes omitted
1 parent 92561aa commit 5c55515

14 files changed

+6926
-4051
lines changed

.eslintrc.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"@typescript-eslint/semi": "off",
1818
"eqeqeq": "warn",
1919
"no-throw-literal": "warn",
20-
"semi": "off",
21-
"react-hooks/exhaustive-deps": "off"
20+
"semi": "off"
2221
},
2322
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
2423
}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dist
22
out
3-
out-integration
3+
out-*
44
node_modules
55
coverage/
66

.husky/pre-commit

-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,3 @@ if [ "$branch" = "main" ]; then
66
fi
77

88
npx lint-staged
9-
10-
npm run compile
11-
npm run lint
12-
npm run check-types

.husky/pre-push

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ fi
77

88
npm run compile
99

10-
# Check for new changesets
10+
# Check for new changesets.
1111
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
1212
echo "Changeset files: $NEW_CHANGESETS"
13+
1314
if [ "$NEW_CHANGESETS" == "0" ]; then
1415
echo "-------------------------------------------------------------------------------------"
1516
echo "Changes detected. Please run 'npm run changeset' to create a changeset if applicable."
1617
echo "-------------------------------------------------------------------------------------"
17-
fi
18+
fi

.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1414
"sourceMaps": true,
1515
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
16-
"preLaunchTask": "debug-mode",
16+
"preLaunchTask": "${defaultBuildTask}",
1717
"env": {
1818
"NODE_ENV": "development",
1919
"VSCODE_DEBUG_MODE": "true"

.vscode/tasks.json

+6-45
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,15 @@
33
{
44
"version": "2.0.0",
55
"tasks": [
6-
{
7-
"label": "compile",
8-
"type": "npm",
9-
"script": "compile",
10-
"group": {
11-
"kind": "build",
12-
"isDefault": true
13-
},
14-
"presentation": {
15-
"reveal": "silent",
16-
"panel": "shared"
17-
},
18-
"problemMatcher": ["$tsc", "$eslint-stylish"]
19-
},
206
{
217
"label": "watch",
22-
"dependsOn": ["npm: build:webview", "npm: watch:tsc", "npm: watch:esbuild"],
8+
"dependsOn": ["npm: dev", "npm: watch:tsc", "npm: watch:esbuild"],
239
"presentation": {
2410
"reveal": "never"
2511
},
2612
"group": {
2713
"kind": "build",
28-
"isDefault": false
29-
}
30-
},
31-
{
32-
"label": "debug-mode",
33-
"dependsOn": ["compile", "npm: dev"],
34-
"group": {
35-
"kind": "build",
36-
"isDefault": false
37-
},
38-
"dependsOrder": "parallel",
39-
"presentation": {
40-
"reveal": "always",
41-
"panel": "new"
14+
"isDefault": true
4215
}
4316
},
4417
{
@@ -59,20 +32,8 @@
5932
},
6033
"isBackground": true,
6134
"presentation": {
62-
"group": "watch",
63-
"reveal": "never"
64-
}
65-
},
66-
{
67-
"label": "npm: build:webview",
68-
"type": "npm",
69-
"script": "build:webview",
70-
"group": "build",
71-
"problemMatcher": [],
72-
"isBackground": true,
73-
"presentation": {
74-
"group": "watch",
75-
"reveal": "never"
35+
"group": "webview-ui",
36+
"reveal": "always"
7637
}
7738
},
7839
{
@@ -84,7 +45,7 @@
8445
"isBackground": true,
8546
"presentation": {
8647
"group": "watch",
87-
"reveal": "never"
48+
"reveal": "always"
8849
}
8950
},
9051
{
@@ -96,7 +57,7 @@
9657
"isBackground": true,
9758
"presentation": {
9859
"group": "watch",
99-
"reveal": "never"
60+
"reveal": "always"
10061
}
10162
}
10263
]

.vscodeignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Default
2+
.github/**
3+
.husky/**
24
.vscode/**
35
.vscode-test/**
46
out/**

package-lock.json

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+30-27
Original file line numberDiff line numberDiff line change
@@ -289,31 +289,6 @@
289289
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
290290
"watch-tests": "tsc -p . -w --outDir out"
291291
},
292-
"devDependencies": {
293-
"@changesets/cli": "^2.27.10",
294-
"@changesets/types": "^6.0.0",
295-
"@dotenvx/dotenvx": "^1.34.0",
296-
"@types/diff": "^5.2.1",
297-
"@types/diff-match-patch": "^1.0.36",
298-
"@types/jest": "^29.5.14",
299-
"@types/mocha": "^10.0.7",
300-
"@types/node": "20.x",
301-
"@types/string-similarity": "^4.0.2",
302-
"@typescript-eslint/eslint-plugin": "^7.14.1",
303-
"@typescript-eslint/parser": "^7.11.0",
304-
"@vscode/test-cli": "^0.0.9",
305-
"@vscode/test-electron": "^2.4.0",
306-
"esbuild": "^0.24.0",
307-
"eslint": "^8.57.0",
308-
"husky": "^9.1.7",
309-
"jest": "^29.7.0",
310-
"jest-simple-dot-reporter": "^1.0.5",
311-
"lint-staged": "^15.2.11",
312-
"npm-run-all": "^4.1.5",
313-
"prettier": "^3.4.2",
314-
"ts-jest": "^29.2.5",
315-
"typescript": "^5.4.5"
316-
},
317292
"dependencies": {
318293
"@anthropic-ai/bedrock-sdk": "^0.10.2",
319294
"@anthropic-ai/sdk": "^0.26.0",
@@ -359,13 +334,41 @@
359334
"web-tree-sitter": "^0.22.6",
360335
"zod": "^3.23.8"
361336
},
337+
"devDependencies": {
338+
"@changesets/cli": "^2.27.10",
339+
"@changesets/types": "^6.0.0",
340+
"@dotenvx/dotenvx": "^1.34.0",
341+
"@types/debug": "^4.1.12",
342+
"@types/diff": "^5.2.1",
343+
"@types/diff-match-patch": "^1.0.36",
344+
"@types/jest": "^29.5.14",
345+
"@types/mocha": "^10.0.7",
346+
"@types/node": "20.x",
347+
"@types/string-similarity": "^4.0.2",
348+
"@typescript-eslint/eslint-plugin": "^7.14.1",
349+
"@typescript-eslint/parser": "^7.11.0",
350+
"@vscode/test-cli": "^0.0.9",
351+
"@vscode/test-electron": "^2.4.0",
352+
"esbuild": "^0.24.0",
353+
"eslint": "^8.57.0",
354+
"husky": "^9.1.7",
355+
"jest": "^29.7.0",
356+
"jest-simple-dot-reporter": "^1.0.5",
357+
"lint-staged": "^15.2.11",
358+
"npm-run-all": "^4.1.5",
359+
"prettier": "^3.4.2",
360+
"ts-jest": "^29.2.5",
361+
"typescript": "^5.4.5"
362+
},
362363
"lint-staged": {
363364
"*.{js,jsx,ts,tsx,json,css,md}": [
364365
"prettier --write"
365366
],
366367
"src/**/*.{ts,tsx}": [
367-
"prettier --write",
368-
"npx eslint -c .eslintrc.json --fix"
368+
"npx eslint -c .eslintrc.json --max-warnings=0 --fix"
369+
],
370+
"webview-ui/**/*.{ts,tsx}": [
371+
"npx eslint -c webview-ui/.eslintrc.json --max-warnings=0 --fix"
369372
]
370373
}
371374
}

webview-ui/.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-app"
3+
}

0 commit comments

Comments
 (0)