From 5ab4e6f9d9626aff7366767c9420f0f30b710221 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 3 May 2026 12:39:11 +0100 Subject: [PATCH] chore: clean up editor metadata --- .gitignore | 10 ++++++++++ .vscode/extensions.json | 3 --- .vscode/settings.json | 22 ---------------------- scripts/changed-lanes.mjs | 2 +- test/scripts/changed-lanes.test.ts | 13 +++++++++++++ 5 files changed, 24 insertions(+), 26 deletions(-) delete mode 100644 .vscode/extensions.json delete mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 70bbb115fe7..727b1eb8981 100644 --- a/.gitignore +++ b/.gitignore @@ -97,6 +97,7 @@ USER.md *.tar.gz *.zip .idea +.vscode/ # local tooling .serena/ @@ -190,12 +191,21 @@ changelog/fragments/ # Local scratch workspace .tmp/ +.cache/ +.pytest_cache/ +.ruff_cache/ +.mypy_cache/ .vmux* .artifacts/ .openclaw-config-doc-cache/ openclaw-path-alias-*/ /.pi/ /C:\\openclaw/ +*.log +*.tmp +*.heapsnapshot +*.cpuprofile +*.prof test/fixtures/openclaw-vitest-unit-report.json analysis/ .artifacts/qa-e2e/ diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 99e2f7ddf76..00000000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "recommendations": ["oxc.oxc-vscode"] -} diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b301c078ac7..00000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "editor.formatOnSave": true, - "files.insertFinalNewline": true, - "files.trimFinalNewlines": true, - "[javascript]": { - "editor.defaultFormatter": "oxc.oxc-vscode" - }, - "[typescriptreact]": { - "editor.defaultFormatter": "oxc.oxc-vscode" - }, - "[typescript]": { - "editor.defaultFormatter": "oxc.oxc-vscode" - }, - "[json]": { - "editor.defaultFormatter": "oxc.oxc-vscode" - }, - "typescript.preferences.importModuleSpecifierEnding": "js", - "typescript.reportStyleChecksAsWarnings": false, - "typescript.updateImportsOnFileMove.enabled": "always", - "typescript.tsdk": "node_modules/typescript/lib", - "makefile.configureOnOpen": false -} diff --git a/scripts/changed-lanes.mjs b/scripts/changed-lanes.mjs index 5faf6dcbf64..0dacbe3a66c 100644 --- a/scripts/changed-lanes.mjs +++ b/scripts/changed-lanes.mjs @@ -9,7 +9,7 @@ const APP_PATH_RE = /^(?:apps\/|Swabble\/|appcast\.xml$)/u; const EXTENSION_PATH_RE = /^extensions\/[^/]+(?:\/|$)/u; const CORE_PATH_RE = /^(?:src\/|ui\/|packages\/)/u; const TOOLING_PATH_RE = - /^(?:scripts\/|test\/vitest\/|\.github\/|git-hooks\/|Dockerfile\.sandbox(?:-(?:browser|common))?$|vitest(?:\..+)?\.config\.ts$|tsconfig.*\.json$|\.gitignore$|\.oxlint.*|\.oxfmt.*)/u; + /^(?:scripts\/|test\/vitest\/|\.github\/|\.vscode\/|git-hooks\/|Dockerfile\.sandbox(?:-(?:browser|common))?$|vitest(?:\..+)?\.config\.ts$|tsconfig.*\.json$|\.gitignore$|\.oxlint.*|\.oxfmt.*)/u; const ROOT_GLOBAL_PATH_RE = /^(?:package\.json$|pnpm-lock\.yaml$|pnpm-workspace\.yaml$|tsdown\.config\.ts$|vitest\.config\.ts$)/u; const LIVE_DOCKER_TOOLING_PATH_RE = diff --git a/test/scripts/changed-lanes.test.ts b/test/scripts/changed-lanes.test.ts index 4d1f6add7f1..d68d57d3453 100644 --- a/test/scripts/changed-lanes.test.ts +++ b/test/scripts/changed-lanes.test.ts @@ -320,6 +320,19 @@ describe("scripts/changed-lanes", () => { expect(plan.commands.map((command) => command.args[0])).not.toContain("test"); }); + it("routes VS Code workspace settings to tooling instead of all lanes", () => { + const result = detectChangedLanes([".vscode/settings.json", ".vscode/extensions.json"]); + const plan = createChangedCheckPlan(result); + + expect(result.lanes).toMatchObject({ + tooling: true, + all: false, + }); + expect(plan.commands.map((command) => command.args[0])).toContain("lint:scripts"); + expect(plan.commands.map((command) => command.args[0])).not.toContain("tsgo:all"); + expect(plan.commands.map((command) => command.args[0])).not.toContain("test"); + }); + it("routes legacy root sandbox Dockerfile moves to tooling instead of all lanes", () => { const result = detectChangedLanes([ "Dockerfile.sandbox",