The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
chore: add knip and remove the dead code it reports (#247)
Jaw5217f8570b90
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 5aed379ea..0866d2275 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -82,6 +82,7 @@ jobs:- run: pnpm typecheck- run: pnpm lint- run: pnpm format:check+ - run: pnpm knip- run: pnpm test- run: pnpm builddiff --git a/knip.ts b/knip.tsnew file mode 100644index 000000000..a341b6879--- /dev/null+++ b/knip.ts@@ -0,0 +1,15 @@+import type { KnipConfig } from "knip";++const config: KnipConfig = {+ // Entries come from the Vite (index.html), Vitest, Playwright and package.json script plugins.+ project: ["src/**/*.{ts,tsx,css}", "scripts/**/*.ts", "perf/**/*.ts", "e2e/**/*.ts"],+ ignoreExportsUsedInFile: true,+ // lint-staged formats Rust files with the toolchain's rustfmt.+ ignoreBinaries: ["rustfmt"],+ compilers: {+ // Fonts come in through `@import` in global.css.+ css: (text: string) => [...text.matchAll(/(?<=@)import[^;]+/g)].join("\n"),+ },+};++export default config;diff --git a/package.json b/package.jsonindex 85865833b..1ec1289e8 100644--- a/package.json+++ b/package.json@@ -15,6 +15,7 @@"lint": "oxlint","format": "oxfmt","format:check": "oxfmt --check",+ "knip": "knip","typecheck": "tsrs --noEmit && tsrs -p tsconfig.node.json --noEmit && tsrs -p perf --noEmit && tsrs -p scripts --noEmit","gen:bindings": "cargo test -p openidea --test export_bindings","gen:theme-docs": "node scripts/theme/gen-docs.ts",@@ -57,7 +58,6 @@"@xterm/xterm": "^6.0.0","anser": "^2.3.5","clsx": "^2.1.1",- "codemirror": "^6.0.2","dompurify": "^3.4.17","emmet": "2.4.11","immer": "^11.1.21",@@ -74,12 +74,12 @@"@testing-library/jest-dom": "^7.0.1","@testing-library/react": "^16.3.3","@testing-library/user-event": "^14.6.8",- "@types/dompurify": "^3.2.0","@types/node": "^26.6.5","@types/react": "^19.1.8","@types/react-dom": "^19.1.6","@vitejs/plugin-react": "^6.0.2","jsdom": "^30.1.3",+ "knip": "^6.43.0","lint-staged": "^17.6.0","oxfmt": "^0.74.0","oxlint": "^1.89.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex d2c577df5..b75c62452 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -77,9 +77,6 @@ importers:clsx:specifier: ^2.1.1version: 2.1.1- codemirror:- specifier: ^6.0.2- version: 6.0.2dompurify:specifier: ^3.4.17version: 3.4.17@@ -116,16 +113,13 @@ importers:version: 2.12.3'@testing-library/jest-dom':specifier: ^7.0.1- version: 7.0.1(@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))+ version: 7.0.1(@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])))'@testing-library/react':specifier: ^16.3.3version: 16.3.3(@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@testing-library/user-event':specifier: ^14.6.8version: 14.6.8(@testing-library/[email protected])- '@types/dompurify':- specifier: ^3.2.0- version: 3.2.0'@types/node':specifier: ^26.6.5version: 26.6.5@@ -137,10 +131,13 @@ importers:version: 19.3.0(@types/[email protected])'@vitejs/plugin-react':specifier: ^6.0.2jsdom:specifier: ^30.1.3version: 30.1.3+ knip:+ specifier: ^6.43.0+ version: 6.43.0lint-staged:specifier: ^17.6.0version: 17.6.0@@ -161,10 +158,10 @@ importers:version: 6.0.3vite:specifier: ^8.0.16- version: 8.3.4(@types/[email protected])([email protected])vitest:specifier: ^5.0.5- version: 5.0.5(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ version: 5.0.5(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))packages:@@ -357,6 +354,15 @@ packages:'@emmetio/[email protected]':resolution: {integrity: sha512-IqRuJtQff7YHHBk4G8YZ45uB9BaAGcwQeVzgj/zj8/UdOhtQpEIupUhSk8dys6spFIWVZVeK20CzGEnqR5SbqA==}+ '@emnapi/[email protected]':+ resolution: {integrity: sha512-TC8MkTuZUtcTSiFeuC0ksCh9QIJ5+F21MvZ4Wn4ORfYaFJ/0dsiudv5tVkejgwZlwQ39jL9WWDe2lz8x0WglOA==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-kyOl3X0DuTiT1h2ft8r2fYO8JYtU9a9Xis/zBSiGArNaagCOWx90N1k2wxp18czFDH+OgcWGb5ZP/XMt3dcyPA==}++ '@emnapi/[email protected]':+ resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}+'@exodus/[email protected]':resolution: {integrity: sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==}engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}@@ -461,9 +467,244 @@ packages:resolution: {integrity: sha512-j37dj/h6p6pots1L7pLPPNuABEEu9WP4OYg9pW1g+nYG331j0+3canE9OagtYdytYvdSAMG+2fKU5cxep6LgjA==}engines: {node: '>=22.12.0'}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==}+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}+ peerDependencies:+ '@emnapi/core': ^1.7.1 || 2.0.0-beta.2+ '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-A6xv7hDtnTm+xlZ7utn6rRQpRMJHRhVr3gjRGqlx0RUX84mNk0pAsy6YN/wWhuOTkaZhRrrzaLxf0NfbH77j2w==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [android]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-T1wWwH9/JI5g7Z4kEQwDOwhToxdDhRyOTklH+uuNpJ16m3MZFmGl+l2rKc0NHQdbVRG2LTOBsNjpW3h1BWytPA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [android]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-ZoRB3qJxJ8DWA41jHja+YeB0lLfjBy4T+Kr15vnN1k65X3zbJt3rPZftEwN4Ju4tmA4K/T9dWWD7Z8ewQLnrVA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [darwin]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-vxtL86BtM+IgrpejA86nbTk5j0HKTIMeuaJ1fQciw6p9RfavPtIPjI7gN34owap0yG9txXBaAWpGdxokNwdqIw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [darwin]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-tN6Ru5e0UVnWaIuiH8jEwnvxuxg7FvhWwSd3oe5oDhOD4ObsSr9/N6WfHLjilUWlPPj65ptwrSDH0Y7lzwTzmw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [freebsd]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-h4ozA5n6L6lwolsz9iwunEhKWnIVbmFRots5QxEix0H6nJ5ICpuDa7PuShuhfpIDFe3+Qvyscioyiv+9g+4Syg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-058/+LardpfuUlsKIvBGk/CYoakEVcMgqYx8GgyUZeOxFWTojYLlCc1Gb60/y21v3esDhHidgiY/Zbq9LpBhaQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm]+ os: [linux]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-nrOt2Y3xIAzu+lSPzH0864ieO+iCCXgoo9qFlGANE8Xh0cQ+RP8Wstfp+/wXN2YCyb98cAGzX0VruKYw7it/jw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-KYAayyN5hQbJPtGKtRxlyc8XYmyntOplyXSQzTDrmbz7l/GCrzQbSswvyJFBTH1LGtsZrbXOAfN52i/Kz6kLKg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-CSuSY5hfjtsBnHXydOj8jiNfS1qHbdPZuPz1YL1cSgK7VmNYP+QlZIbG0BBYYBgX/vYEgZwbG9mBdW4YairZ5w==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-7KCfOQm+Nz2N8trAXbQkal4TQ5756WVEmhm35y816YHvyFnEfVsICsiV5k0pEszNf/fRm4cm2i6i18SJ6/iCWg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-JSlhgoK+/g1TGJI5NuADx2+6syhxnQNLCWLXyO5QLFyetomcr/vIxSdiNlmyAv963YXUzCuwAwRG6npZ5xyJ1A==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-WFIX+dPokWp64mi434Md3U3lJaTwNxAphvGjpltoyQjGUsdXavOIRrnp9dOS34Hd75HOAwDxAI+YwWOwqmJbtg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-g6xSDC/JpbnVOz5uafMGyK3txBVRFMQTx8opv/yHXGxqV3ZMVl3bf7W8XrSnF68dmy3gM4dgReNryuE53+WkeQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-6/4xlxKlZJWrQ0uwDFPc0H9+xLu7068CKhX3vIDW3SbvP/lVgnVuT5v6dyugeWskWpuxqF/WJ4WKwhxjU3pG2w==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-tltklL0J0XjDxIRTBXWOBhvc2mitcmES45pIxhwDWfxRyqz7Vkeu0NekTZEIxGE4f/lXgq3vZcjjffteQOVorg==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [openharmony]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-alAb9TzjatUEsOeoncAziUnfdTDxfyswhalFZ9sC6plUgATIUx2NIZ0+bMn6aJ28AduS1OpG/OAisr/YISn4Ig==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [arm64]+ os: [win32]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-yc5cbSfcGmRv/KpxDFuyk8adEBaWd/9HilWvBbQ4bFbus1V2PUh2mGB2Cfq9rqZTqLeiMT8x0skV+LKp9hOMgQ==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [ia32]+ os: [win32]++ '@oxc-parser/[email protected]':+ resolution: {integrity: sha512-8heq6jGq+rfpTDRDjoQiBHw0maQZf3IXkS99pdHQZPoTL5kyF5qyPS0RidUlSdnWDIqxXb5nux7GBD9cT+imUw==}+ engines: {node: ^20.19.0 || >=22.12.0}+ cpu: [x64]+ os: [win32]+'@oxc-project/[email protected]':resolution: {integrity: sha512-KYOUGQFlLWR+s4QMV2Q9ko38TZm7EdO87Qm7rvZLqk/webse/cDjtyxKhg/47l0byCbs/k46LT8qc4PKjAikzA==}+ '@oxc-project/[email protected]':+ resolution: {integrity: sha512-SeE8JPwW1xs1tHeNycjUtUBdhorRa8o4jlvjwk49R7/Z291i+4DQa7JJIgOm/TaYQZx+QrPQbVJ/9c8dMIZN8Q==}++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-y09e0L0SRI2OA2tUIrjBgoV3eH5hvUKXNkJqXmNo5V2WxIjyC7I7aJfRLMEVpA8yi95f90gFDvO0VMgrDw+vwA==}+ cpu: [arm]+ os: [android]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-cl4icWaZFnLdg8m6qtnh5rBMuGbxc/ptStFHLeCNwr+2cZjkjNwQu/jYRS0CHlnPecOJMpuS5M6/BH+0J/YkEg==}+ cpu: [arm64]+ os: [android]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-At29QEMF6HajbQvgY8K6OXnHD1x9rad74xBEfmCB6ZqCGsdq75aK7tOYcTbOanMy8qdIBrfL3SMr3p/lfSlb9w==}+ cpu: [arm64]+ os: [darwin]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-A5Kqr1EUj4oIL5CF4WRssq/o5P0Y11cwoFouMRmQ7YnC/A8V93nv1nb7aSU8HwcgmXropjLNkVTl4MN87cu28Q==}+ cpu: [x64]+ os: [darwin]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-R5xkRBRRz7ceH/P5Jrc6G7FmdUdgpLYyESFAUDVTNQ9K0sGPxcp4ljiwEwEqsvNcQ4sYbMRrWcHHBCu7ksAJVw==}+ cpu: [x64]+ os: [freebsd]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-k/RuYL4L/R58IBn3wT5ma3Wh4k62bp1eYCFRWCmMsasUOqL+H6sW0VGFadEzKWXFFlz+2uIMoeMk9ySSZJHgbg==}+ cpu: [arm]+ os: [linux]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-bnHAak3ujYfH5pKk4NieFNbvYvernfoQDgwLddbZ3OtMYrem87/qjlA+u+aKG0oZcqSLGCful/6/CEA+aeAgaA==}+ cpu: [arm]+ os: [linux]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-vDT3KHgzYp47gmtNOqL2VNhCyl5Zv643eyxm//A68J8DeUGXrvD1pZFiaT4jSfe+RInfnn1R2yVHye4enx6RnA==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-+kMlQvbzfyEYtu5FcjE4p+ttBLpKW4d/AsAsuE69BxV6V4twZJeIQZFfD8gh/wqglY0MkPSezWXQH0jBV13MUw==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-shjfMhmZ3gq9fv/w7bi3PnZlgOPG+2QAOFf0BJF0EgBSIGZ6PMLN2zbGEblTUYB/NKVDRyYhE2ff3dJ1QqNPkA==}+ cpu: [ppc64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-zGelwFR5oRo+b69k8Lrzun86DyUHzfKN6cnjbR9l7Z7NIRznOE/2ZvPa1IUKqAL2PzAXOdwkfVqNvO1H2RlpAw==}+ cpu: [riscv64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-qxZ1SWCXJY0eyhAlP6Lmo9F2Nrtx7EkYj9oCgL8apDPCwXwCEDA2U697bbT81JIc2IrVjxO4KX6WU2N+oN9Z4w==}+ cpu: [riscv64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-sGCecF3cx2DFlH4t/z7ApnOnXqN48p5p5mlHDEnHTAukQa2P+qMVE4CwyWE9W+q/m3QJ7kKfGrIjax31f44oFQ==}+ cpu: [s390x]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-k/VlMMcSzMlahb3/fENM4rTlsJ0s3fFROA0KXPBmKggqmTSaE383sl8F3KCOXPLmVsYfW6hCitMhXCEtNeZxxg==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-8hbnZyNi97b/8wapYaIF9+t9GmZKBW2vunaOc3h9HGJptH7b7XpvZqOTBSm/MpTjr7H497BlgOaSfLUdhmy2bw==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-MvyGik3a6pVgZ0t/kWlbmFxFLmXQJwgLsY2eYFHLpy0wGwRbfzeIGgDwQ3kXqE30z+kSXennRkCrT7TUvkptNg==}+ cpu: [arm64]+ os: [openharmony]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-vHcssMPwO08RTvj/c0iOBz90attxyG3wQJ0dTcyEQK43LRpcdLWZlV5feBhv6Isn6ahbQIzHbCgfa81+RiML0Q==}+ engines: {node: '>=14.0.0'}+ cpu: [wasm32]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-uokJqro2iBqkFvJdKQLP7d8/BUmFwESQFVmIJUQKj1Xn1a/LysJoe1vmeECLF5b3jsV8CAL5sEMJXX6SdK9Nhg==}+ cpu: [arm64]+ os: [win32]++ '@oxc-resolver/[email protected]':+ resolution: {integrity: sha512-UqGPmo56KDfLlfXFAFIrNflHT8tFxWGEivWg3Zeyp4Uy2NlKN1FGPr6/BxcLGG3+kZ6Wp14g5Uj+n71boqZfiw==}+ cpu: [x64]+ os: [win32]+'@oxfmt/[email protected]':resolution: {integrity: sha512-xxQwrf5EPI5zxvuCTW8r6tzCTjPQ+h6+HqJ0iRKRy2zS1yBllt/xLVjoIyUc+FnR7g0a5g1SZv2yyDYhTItLbA==}engines: {node: ^20.19.0 || >=22.12.0}@@ -999,6 +1240,9 @@ packages:cpu: [x64]os: [win32]+ '@tybys/[email protected]':+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}+'@types/[email protected]':resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}@@ -1101,10 +1345,6 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}- '@types/[email protected]':- resolution: {integrity: sha512-Fgg31wv9QbLDA0SpTOXO3MaxySc4DKGLi8sna4/Utjo4r3ZRPdCt4UQee8BWr+Q5z21yifghREPJGYaEOEIACg==}- deprecated: This is a stub types definition. dompurify provides its own type definitions, so you do not need this installed.-'@types/[email protected]':resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}@@ -1204,9 +1444,6 @@ packages:resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}engines: {node: '>=6'}- resolution: {integrity: sha512-VhydHotNW5w1UGK0Qj96BwSk/Zqbp9WbnyK2W/eVMv4QyF41INRGpjUhFJY7/uDNuudSc33a/PKr4iDqRduvHw==}-resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}engines: {node: '>= 10'}@@ -1443,6 +1680,9 @@ packages:resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==}engines: {node: '>=12.0.0'}+ resolution: {integrity: sha512-jKmm9YtsNXN789RS/0mSzOC1NUq9mkVd65vbSSVsKdjGvYXBuE4oWe2QOEoFeRmJg+lPuZxpmrfFclNhoRMneQ==}+resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}engines: {node: '>=12.0.0'}@@ -1452,11 +1692,19 @@ packages:picomatch:optional: true+ resolution: {integrity: sha512-TeCC10lP8KCgoX+Fe5lryILIT0/Dy+nP0OSVnsuB5CwXoLuOdqxCYlPFF1inR8S/zTy1ec7TjhS2TeRKWzzImA==}+ engines: {node: '>=18.14.0'}+ hasBin: true+resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]+ resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==}+resolution: {integrity: sha512-3GKBOn+m2LX9iq+JC1064cSFprJY4jL1jCXTcpnfER5HYE2l/4EfWSGzkPa/ZDBmYI0ZOEj5VHV/eKnPGkHuOg==}@@ -1488,6 +1736,10 @@ packages:resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}+ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -1507,6 +1759,11 @@ packages:resolution: {integrity: sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw==}+ resolution: {integrity: sha512-8l3cCOg/EXoILO0qcSoMra49yQM91+lEIR4fu5Ko8rrArGX8xKdKZiGI9psPiY6rhLmfLERcMfFEByF0wli5CA==}+ engines: {node: ^20.19.0 || >=22.12.0}+ hasBin: true+resolution: {integrity: sha512-8h2oVEZNktL4BH2JCOI90iD1yXwL6iNW7KcCKT2QZgQJR2vbqDsldCTPRU9NifTCqHZci57XvQQ15YTu+sTYPg==}@@ -1636,6 +1893,13 @@ packages:resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}engines: {node: '>=12.20.0'}+ resolution: {integrity: sha512-C/ReSf1JUFukK/zvk6jhcNibSssvas5+ktIzK7fbKVd3CedWe59C3QwHEOrEZj/4Rt9+xg0Jeis/Jv1F/KM1mw==}+ engines: {node: ^20.19.0 || >=22.12.0}++ resolution: {integrity: sha512-FY91FiDBj7ls5MsFS9jN3tjz2o0/zsdSsymlakySaBwVJZorHhkWyICLZMKxlu1R9vYo+sd3z1jwb4J8x7bNDw==}+resolution: {integrity: sha512-G4OP7FgwGYZR5ttRpCOOfJdyRsSyvtn34vSXnjDq6Oqed5Dufg5mB44mank+51nAdHOKuTJ0lj0mksY7L+N61A==}engines: {node: ^20.19.0 || >=22.12.0}@@ -1735,6 +1999,9 @@ packages:resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}+resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==}@@ -1763,6 +2030,10 @@ packages:resolution: {integrity: sha512-kkTORPAuxQz2g1QUuN0J8yGWT28tjGBfPOdJ4xT7Vbeu30veKUZQIoID2qGgCDAakaQn59UeZJJ4cFGB8PVP2A==}hasBin: true+ resolution: {integrity: sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==}+ engines: {node: '>= 18'}+resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}engines: {node: '>=0.10.0'}@@ -1778,6 +2049,10 @@ packages:resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==}+ engines: {node: '>=14.16'}+resolution: {integrity: sha512-XXWIQt633/EpAFx8aZDOTjBzrCaGmhvEQlQo6MVPfa2OzO2cWo+4hV9h+6UkHYlXGfy+ODXKUdP7Pthmcu5ATw==}@@ -1819,6 +2094,9 @@ packages:resolution: {integrity: sha512-JfJeIHke7y2egdGGgRAvpCwYFUsHlM2gPcrVOxFkznt/4uzQ7HFmvE63iFHVLBJNDuyDOQgijDK/tXH/f6Msjg==}engines: {node: '>=6.10'}+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}+resolution: {integrity: sha512-8NifAn2tcna3t/nluu1yFvp0fYE28vElDpnD4jiWik69+MDjiHgxdjH8sUYUEFmf/2hl6QIE5ExVGpJzQbBDPw==}engines: {node: '>=16.20.0'}@@ -1829,6 +2107,10 @@ packages:engines: {node: '>=14.17'}hasBin: true+ resolution: {integrity: sha512-0db9eS5iqybux41zLkX69nk90KTci7F7eZ+gXzEG/Q7E0tAqEBhRh5fkZvk1N7jT7QkGWqq34i8SFGPFEe1V8A==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==}@@ -1931,6 +2213,10 @@ packages:resolution: {integrity: sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==}engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}+ resolution: {integrity: sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==}+ engines: {node: 20 || >=22}+resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}engines: {node: '>=20'}@@ -1960,6 +2246,9 @@ packages:engines: {node: '>= 14.6'}hasBin: true+ resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==}+resolution: {integrity: sha512-MpSEjRiBkA9crSYeOUH32rJC7SVqAbm0Fqcqge/bUi2PPoLcBWKOsG+C8mevmpr8TwXHBVkChbbJiyvkE+i/3A==}engines: {node: '>=12.20.0'}@@ -2329,6 +2618,22 @@ snapshots:'@emmetio/[email protected]': {}+ '@emnapi/[email protected]':+ dependencies:+ '@emnapi/wasi-threads': 1.2.2+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true++ '@emnapi/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@exodus/[email protected]': {}'@floating-ui/[email protected]':@@ -2468,8 +2773,135 @@ snapshots:dependencies:'@chevrotain/types': 13.2.0+ dependencies:+ '@emnapi/core': 1.11.2+ '@emnapi/runtime': 1.11.2+ '@tybys/wasm-util': 0.10.4+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true++ '@oxc-parser/[email protected]':+ optional: true+'@oxc-project/[email protected]': {}+ '@oxc-project/[email protected]': {}++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ dependencies:+ '@emnapi/core': 1.11.2+ '@emnapi/runtime': 1.11.2+ '@napi-rs/wasm-runtime': 1.2.6(@emnapi/[email protected])(@emnapi/[email protected])+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true++ '@oxc-resolver/[email protected]':+ optional: true+'@oxfmt/[email protected]':optional: true@@ -2722,7 +3154,7 @@ snapshots:picocolors: 1.1.1pretty-format: 27.5.1- '@testing-library/[email protected](@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))':+ '@testing-library/[email protected](@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])))':dependencies:'@adobe/css-tools': 4.5.0'@testing-library/dom': 10.4.2@@ -2732,7 +3164,7 @@ snapshots:picocolors: 1.1.1redent: 3.0.0optionalDependencies:- vitest: 5.0.5(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ vitest: 5.0.5(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))'@testing-library/[email protected](@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -2769,6 +3201,11 @@ snapshots:'@tsrs/[email protected]':optional: true+ '@tybys/[email protected]':+ dependencies:+ tslib: 2.8.1+ optional: true+'@types/[email protected]': {}'@types/[email protected]':@@ -2895,10 +3332,6 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':- dependencies:- dompurify: 3.4.17-'@types/[email protected]': {}'@types/[email protected]': {}@@ -2923,19 +3356,19 @@ snapshots:d3-selection: 3.0.0d3-transition: 3.0.1([email protected])+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':dependencies:'@rolldown/pluginutils': 1.0.1- vite: 8.3.4(@types/[email protected])([email protected])+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))':dependencies:'@jridgewell/trace-mapping': 0.3.31'@vitest/spy': 5.0.5estree-walker: 3.0.3magic-string: 1.4.3optionalDependencies:- vite: 8.3.4(@types/[email protected])([email protected])'@vitest/[email protected]': {}@@ -2975,16 +3408,6 @@ snapshots:- dependencies:- '@codemirror/autocomplete': 6.20.3- '@codemirror/commands': 6.11.1- '@codemirror/language': 6.13.1- '@codemirror/lint': 6.9.7- '@codemirror/search': 6.7.2- '@codemirror/state': 6.7.6- '@codemirror/view': 6.43.14-@@ -3238,13 +3661,26 @@ snapshots:+ dependencies:+ walk-up-path: 4.0.0+optionalDependencies:picomatch: 4.0.7+ dependencies:+ fd-package-json: 2.0.0+ package-manager-detector: 1.9.0+optional: true+ dependencies:+ resolve-pkg-maps: 1.0.0+@@ -3269,6 +3705,8 @@ snapshots:+ [email protected]: {}+@@ -3302,6 +3740,21 @@ snapshots:+ dependencies:+ formatly: 0.11.4+ get-tsconfig: 4.14.3+ jiti: 2.7.0+ oxc-parser: 0.155.0+ oxc-resolver: 11.24.2+ picomatch: 4.0.7+ smol-toml: 1.9.1+ strip-json-comments: 5.0.3+ tinyglobby: 0.2.17+ unbash: 6.0.1+ yaml: 2.9.1+ zod: 4.6.7+@@ -3411,6 +3864,52 @@ snapshots:+ dependencies:+ '@oxc-project/types': 0.155.0+ optionalDependencies:+ '@oxc-parser/binding-android-arm-eabi': 0.155.0+ '@oxc-parser/binding-android-arm64': 0.155.0+ '@oxc-parser/binding-darwin-arm64': 0.155.0+ '@oxc-parser/binding-darwin-x64': 0.155.0+ '@oxc-parser/binding-freebsd-x64': 0.155.0+ '@oxc-parser/binding-linux-arm-gnueabihf': 0.155.0+ '@oxc-parser/binding-linux-arm-musleabihf': 0.155.0+ '@oxc-parser/binding-linux-arm64-gnu': 0.155.0+ '@oxc-parser/binding-linux-arm64-musl': 0.155.0+ '@oxc-parser/binding-linux-ppc64-gnu': 0.155.0+ '@oxc-parser/binding-linux-riscv64-gnu': 0.155.0+ '@oxc-parser/binding-linux-riscv64-musl': 0.155.0+ '@oxc-parser/binding-linux-s390x-gnu': 0.155.0+ '@oxc-parser/binding-linux-x64-gnu': 0.155.0+ '@oxc-parser/binding-linux-x64-musl': 0.155.0+ '@oxc-parser/binding-openharmony-arm64': 0.155.0+ '@oxc-parser/binding-win32-arm64-msvc': 0.155.0+ '@oxc-parser/binding-win32-ia32-msvc': 0.155.0+ '@oxc-parser/binding-win32-x64-msvc': 0.155.0++ optionalDependencies:+ '@oxc-resolver/binding-android-arm-eabi': 11.24.2+ '@oxc-resolver/binding-android-arm64': 11.24.2+ '@oxc-resolver/binding-darwin-arm64': 11.24.2+ '@oxc-resolver/binding-darwin-x64': 11.24.2+ '@oxc-resolver/binding-freebsd-x64': 11.24.2+ '@oxc-resolver/binding-linux-arm-gnueabihf': 11.24.2+ '@oxc-resolver/binding-linux-arm-musleabihf': 11.24.2+ '@oxc-resolver/binding-linux-arm64-gnu': 11.24.2+ '@oxc-resolver/binding-linux-arm64-musl': 11.24.2+ '@oxc-resolver/binding-linux-ppc64-gnu': 11.24.2+ '@oxc-resolver/binding-linux-riscv64-gnu': 11.24.2+ '@oxc-resolver/binding-linux-riscv64-musl': 11.24.2+ '@oxc-resolver/binding-linux-s390x-gnu': 11.24.2+ '@oxc-resolver/binding-linux-x64-gnu': 11.24.2+ '@oxc-resolver/binding-linux-x64-musl': 11.24.2+ '@oxc-resolver/binding-openharmony-arm64': 11.24.2+ '@oxc-resolver/binding-wasm32-wasi': 11.24.2+ '@oxc-resolver/binding-win32-arm64-msvc': 11.24.2+ '@oxc-resolver/binding-win32-x64-msvc': 11.24.2+dependencies:tinypool: 2.2.0@@ -3517,6 +4016,8 @@ snapshots:+ [email protected]: {}+@@ -3559,6 +4060,8 @@ snapshots:+ [email protected]: {}+@@ -3569,6 +4072,8 @@ snapshots:dependencies:min-indent: 1.0.1+ [email protected]: {}+@@ -3600,6 +4105,9 @@ snapshots:+ optional: true+optionalDependencies:'@tsrs/darwin-arm64': 0.20.0-ts7.1.0-beta@@ -3612,13 +4120,15 @@ snapshots:+ [email protected]: {}+dependencies:lightningcss: 1.33.0picomatch: 4.0.7@@ -3628,12 +4138,13 @@ snapshots:optionalDependencies:'@types/node': 26.6.5fsevents: 2.3.3+ jiti: 2.7.0yaml: 2.9.1- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])):dependencies:'@types/chai': 5.2.3+ '@vitest/mocker': 5.0.5([email protected](@types/[email protected])([email protected])([email protected]))chai: 6.3.0es-module-lexer: 2.3.2expect-type: 1.4.0@@ -3644,7 +4155,7 @@ snapshots:tinybench: 6.2.2tinyexec: 1.3.1tinyglobby: 0.2.17- vite: 8.3.4(@types/[email protected])([email protected])why-is-node-running: 3.2.1optionalDependencies:'@types/node': 26.6.5@@ -3658,6 +4169,8 @@ snapshots:dependencies:xml-name-validator: 5.0.0+ [email protected]: {}+@@ -3676,8 +4189,9 @@ snapshots:- optional: true+ [email protected]: {}++ [email protected]: {}optionalDependencies:diff --git a/src/editor/core/backend.ts b/src/editor/core/backend.tsindex d03481bbe..c93be8dd6 100644--- a/src/editor/core/backend.ts+++ b/src/editor/core/backend.ts@@ -528,8 +528,3 @@ let current: DocBackend | null = null;export function docBackend(): DocBackend {return (current ??= isTauri() ? ipcBackend : createMemoryBackend());}--/** Test hook. */-export function _setDocBackend(b: DocBackend | null) {- current = b;-}diff --git a/src/editor/core/cm/editing.ts b/src/editor/core/cm/editing.tsindex 452547f6c..69594bc4f 100644--- a/src/editor/core/cm/editing.ts+++ b/src/editor/core/cm/editing.ts@@ -287,8 +287,6 @@ export function nextOccurrence(view: EditorView): "selected" | "added" | "notFoureturn "added";}-export const addCaretNextOccurrence: Command = (view) => nextOccurrence(view) !== "none";-/** ⌃⌘G: select every occurrence of the selection, or of the word at the caret (whole words). */export const selectAllOccurrences: Command = (view) => {const { state } = view;@@ -658,17 +656,6 @@ export function completeStatement(language: string): Command {};}-// --- helpers ---------------------------------------------------------------------export function selectRange(view: EditorView, range: SelectionRange | { from: number; to: number }, center = true) {- view.dispatch({- selection: EditorSelection.single(range.from, range.to),- effects: center ? EditorView.scrollIntoView(range.from, { y: "center" }) : undefined,- scrollIntoView: !center,- userEvent: "select",- });-}-// --- comments ------------------------------------------------------------------------export { commentLine } from "./comments";diff --git a/src/editor/core/cm/smartKeys.test.ts b/src/editor/core/cm/smartKeys.test.tsindex a5844dee2..a99b33f90 100644--- a/src/editor/core/cm/smartKeys.test.ts+++ b/src/editor/core/cm/smartKeys.test.ts@@ -8,8 +8,8 @@ import {insertTab,smartBackspace,smartBackspaceApplies,+ tabOut,tabOutOfScope,- tabOutScopes,} from "./smartKeys";/** One unit (2) deeper after a (non-blank) line ending in `{`, one less on a line starting with `}`. */@@ -137,7 +137,7 @@ describe("smart backspace", () => {});describe("tab out of pairs", () => {- const ext = [closeBrackets(), tabOutScopes];+ const ext = [closeBrackets(), tabOut];const type = (v: EditorView, ch: string) => {const tr = insertBracket(v.state, ch);if (tr) v.dispatch(tr);diff --git a/src/editor/core/cm/smartKeys.ts b/src/editor/core/cm/smartKeys.tsindex 5bcd3b704..5c1281216 100644--- a/src/editor/core/cm/smartKeys.ts+++ b/src/editor/core/cm/smartKeys.ts@@ -105,7 +105,7 @@ interface Scope {const leaveScopes = StateEffect.define<readonly number[]>();/** Inside each pair the editor inserted itself; Tab at a scope's end steps over the closing character. */-export const tabOutScopes = StateField.define<readonly Scope[]>({+const tabOutScopes = StateField.define<readonly Scope[]>({create: () => [],update(scopes, tr) {for (const e of tr.effects) if (e.is(leaveScopes)) scopes = scopes.filter((s) => !e.value.includes(s.to));diff --git a/src/editor/core/cm/stickyScroll.ts b/src/editor/core/cm/stickyScroll.tsindex 6e7fffa7e..7bb8b4aa4 100644--- a/src/editor/core/cm/stickyScroll.ts+++ b/src/editor/core/cm/stickyScroll.ts@@ -4,7 +4,7 @@* backend folding ranges, or from the syntax tree when there are none.* Clicking a sticky line scrolls to it, the caret where it was clicked.*/-import { Compartment, EditorSelection, Facet, type EditorState, type Extension } from "@codemirror/state";+import { EditorSelection, Facet, type EditorState, type Extension } from "@codemirror/state";import { EditorView, ViewPlugin, type ViewUpdate } from "@codemirror/view";import { foldNodeProp, syntaxTree } from "@codemirror/language";import { highlightTree } from "@lezer/highlight";@@ -250,6 +250,4 @@ class StickyScroll {this.dom.remove();}}--export const stickyScrollCompartment = new Compartment();export const stickyScroll: Extension = ViewPlugin.fromClass(StickyScroll);diff --git a/src/editor/core/controller.ts b/src/editor/core/controller.tsindex 39e758f6f..40cbba52b 100644--- a/src/editor/core/controller.ts+++ b/src/editor/core/controller.ts@@ -1350,11 +1350,6 @@ export function editorController(): EditorController {return (controller ??= new EditorController());}-/** Test hook. */-export function _setEditorController(c: EditorController | null) {- controller = c;-}-/** "Finder" / "Explorer" / "Files", like IDEA's Open In submenu. */function revealLabel(): string {const os = usePlatform.getState().os;diff --git a/src/editor/core/model/tabs.ts b/src/editor/core/model/tabs.tsindex 2dcb9ee6f..dc58c9c47 100644--- a/src/editor/core/model/tabs.ts+++ b/src/editor/core/model/tabs.ts@@ -69,11 +69,6 @@ export function paneOf(s: TabsState, paneId: string): Pane {return p;}-export function activeTab(s: TabsState, paneId = s.activePane): Tab | null {- const p = s.panes[paneId];- return p?.tabs.find((t) => t.id === p.active) ?? null;-}-export function findTab(s: TabsState, key: string, paneId?: string): { paneId: string; tab: Tab } | null {const order = paneId ? [paneId, ...paneIds(s).filter((p) => p !== paneId)] : paneIds(s);for (const id of order) {@@ -298,14 +293,6 @@ export function closeKey(s: TabsState, key: string): TabsState {return next;}-/** Re-keys tabs after a rename / move. */-export function rekey(s: TabsState, fromKey: string, input: EditorInput): TabsState {- const panes: Record<string, Pane> = {};- for (const [id, p] of Object.entries(s.panes))- panes[id] = { ...p, tabs: p.tabs.map((t) => (t.input.key === fromKey ? { ...t, input } : t)) };- return { ...s, panes };-}-export function reopenClosed(s: TabsState): { state: TabsState; tabId: string; paneId: string } | null {const openNow = openKeys(s);const closed = [...s.closed];diff --git a/src/editor/navigation/lineMarkers.ts b/src/editor/navigation/lineMarkers.tsindex 5ab67daeb..b52da96fb 100644--- a/src/editor/navigation/lineMarkers.ts+++ b/src/editor/navigation/lineMarkers.ts@@ -14,9 +14,6 @@ export type MarkerKind = "implemented" | "overridden" | "implementing" | "overri/** Settings › Gutter Icons groups: ↓ markers and ↑ markers. */export type MarkerGroup = "inheritors" | "supers";-export const markerGroup = (kind: MarkerKind): MarkerGroup =>- kind === "implemented" || kind === "overridden" ? "inheritors" : "supers";-export const MARKER_ICONS: Record<MarkerKind, string> = {implemented: "gutter-implemented",overridden: "gutter-overridden",diff --git a/src/editor/refactor/index.ts b/src/editor/refactor/index.tsindex 1d8fd77e6..00c2a85ae 100644--- a/src/editor/refactor/index.ts+++ b/src/editor/refactor/index.ts@@ -1,15 +1,2 @@-/**- * Refactorings: Refactor This and the Refactor menu over LSP code actions,- * Safe Delete, and the syntax-based fallbacks used when the language server- * is not usable (see `@/editor/structure`).- */-export { introduceFallback, type FallbackReason, type IntroduceKind } from "./introduce";export { refactorThis, runRefactoring, showNothingHere } from "./refactorThis";-export {- askUsagesDetected,- fileUsages,- safeDelete,- viewUsages,- type FileUsages,- type UsagesAnswer,-} from "./safeDelete";+export { askUsagesDetected, fileUsages, safeDelete, viewUsages } from "./safeDelete";diff --git a/src/editor/structure/index.ts b/src/editor/structure/index.tsindex c7858311f..129bb5584 100644--- a/src/editor/structure/index.ts+++ b/src/editor/structure/index.ts@@ -43,12 +43,9 @@ export type {Locals,LocalSymbol,NodeAt,- NotLocalReason,StructuralRanges,StructureSupport,- SyntaxError,SyntaxErrors,- SyntaxNode,} from "@/bindings";export interface QueryOptions {diff --git a/src/features/app/closeGuard.ts b/src/features/app/closeGuard.tsindex b2257fc19..28f894eba 100644--- a/src/features/app/closeGuard.ts+++ b/src/features/app/closeGuard.ts@@ -169,9 +169,3 @@ export function installCloseGuard(deps: CloseDeps = defaultDeps): () => void {unsubs.forEach((u) => u());};}--/** Tests only. */-export function _setDirtyForTests(ids: number[]) {- dirtyDocs.clear();- ids.forEach((i) => dirtyDocs.add(i));-}diff --git a/src/features/debugger/breakpoints/languages.ts b/src/features/debugger/breakpoints/languages.tsindex 7de4e7bdd..1496645db 100644--- a/src/features/debugger/breakpoints/languages.ts+++ b/src/features/debugger/breakpoints/languages.ts@@ -21,11 +21,6 @@ function load() {.finally(() => (loading = false));}-/** For tests: languages that have a debugger (`null` = unknown, allow everything). */-export function _setDebuggableLanguages(ids: Iterable<string> | null) {- debuggable = ids ? new Set(ids) : null;-}-/** Whether a new breakpoint may be placed in a file of `language`. */export function canPlaceBreakpoint(language: string): boolean {if (workflowSettings().debugger.breakpointsAnyFile) return true;diff --git a/src/features/debugger/breakpoints/store.ts b/src/features/debugger/breakpoints/store.tsindex 60881aef8..fcb0bf370 100644--- a/src/features/debugger/breakpoints/store.ts+++ b/src/features/debugger/breakpoints/store.ts@@ -229,10 +229,3 @@ export function setMuted(muted: boolean) {persist();for (const path of Object.keys(useBreakpoints.getState().byFile)) scheduleSync(path);}--export function allBreakpoints(): Array<{ path: string; bp: BreakpointEntry }> {- const { byFile } = useBreakpoints.getState();- return Object.keys(byFile)- .sort()- .flatMap((path) => byFile[path]!.map((bp) => ({ path, bp })));-}diff --git a/src/features/debugger/state.ts b/src/features/debugger/state.tsindex 32f34de0f..336c9eb56 100644--- a/src/features/debugger/state.ts+++ b/src/features/debugger/state.ts@@ -62,12 +62,6 @@ export interface ConsoleLine {spans: Span[];}-export interface WatchResult {- expression: string;- result: Variable | null;- error: string | null;-}-interface DebugState {sessions: Record<number, DebugSession>;/** Session shown in the Debug tool window / title bar. */diff --git a/src/features/http-client/spring/request.ts b/src/features/http-client/spring/request.tsindex 6678a6b66..7686e39a1 100644--- a/src/features/http-client/spring/request.ts+++ b/src/features/http-client/spring/request.ts@@ -6,8 +6,6 @@import type { Endpoint } from "./endpoints";import { allClasses, parseSource, type ClassDecl, type SourceFile } from "./source";-export const DEFAULT_HOST = "http://localhost:8080";-/** Flat `key → value` of a `.properties` file (`=`, `:` or space separated; `#` / `!` comments). */export function parseProperties(text: string): Map<string, string> {const out = new Map<string, string>();diff --git a/src/features/plugins/PluginsPage.tsx b/src/features/plugins/PluginsPage.tsxindex 7eff00533..8d496a3fb 100644--- a/src/features/plugins/PluginsPage.tsx+++ b/src/features/plugins/PluginsPage.tsx@@ -678,5 +678,3 @@ export function PluginsPage() {</div>);}--export default PluginsPage;diff --git a/src/features/plugins/store.ts b/src/features/plugins/store.tsindex e210ade3e..019133651 100644--- a/src/features/plugins/store.ts+++ b/src/features/plugins/store.ts@@ -183,6 +183,3 @@ export async function runPluginCommand(pluginId: string, commandId: string, arg:return null;}}--/** Plugins whose contributions are live (enabled and running, or contribution-only). */-export const isLive = (p: PluginInfo) => p.status === "active" || p.status === "static";diff --git a/src/features/project-tree/model.ts b/src/features/project-tree/model.tsindex 02eba1822..4dc77bfd1 100644--- a/src/features/project-tree/model.ts+++ b/src/features/project-tree/model.ts@@ -568,8 +568,3 @@ export function dropListings(listings: Map<string, readonly FileEntry[]>, dirs:if (!dirs.length) return;for (const key of [...listings.keys()]) if (dirs.some((d) => isSameOrInside(key, d))) listings.delete(key);}--/** Label for a node path used in dialogs: the file name, or the compacted label. */-export function displayName(node: ProjectNode): string {- return node.root ? node.label : nameOf(node.path);-}diff --git a/src/features/project-tree/store.ts b/src/features/project-tree/store.tsindex a3cfe17fb..9fad9fc86 100644--- a/src/features/project-tree/store.ts+++ b/src/features/project-tree/store.ts@@ -404,10 +404,6 @@ export function loadDir(path: string, force = false): Promise<void> {return p;}-export function isLoading(path: string): boolean {- return inflight.has(path);-}-/** Applies a backend `fsChanged` event: reloads affected loaded folders only. */export async function applyFsChange(event: { created: string[]; modified: string[]; removed: string[] }) {const s = get();diff --git a/src/features/run/EditConfigsDialog.tsx b/src/features/run/EditConfigsDialog.tsxindex a6c54e700..0f3316091 100644--- a/src/features/run/EditConfigsDialog.tsx+++ b/src/features/run/EditConfigsDialog.tsx@@ -32,8 +32,6 @@ import { blankTemplate, COMPOUND, missingParams, newConfigOfType, templateId, tyimport styles from "./Run.module.css";import { tx } from "@/platform/i18n";-export { envFromRows } from "./EnvDialog";-export function EditConfigsOverlay() {const open = useRun((s) => s.editorOpen);if (!open) return null;diff --git a/src/features/run/configs.ts b/src/features/run/configs.tsindex fd5161ed0..82b2dd7ca 100644--- a/src/features/run/configs.ts+++ b/src/features/run/configs.ts@@ -159,25 +159,6 @@ export function mergeConfigs(detected: readonly RunConfig[], user: readonly RunCreturn [...detected.filter((d) => !ids.has(d.id)), ...user];}-export function configsEqual(a: RunConfig, b: RunConfig): boolean {- return (- a.id === b.id &&- a.name === b.name &&- a.kind === b.kind &&- a.command === b.command &&- a.args.join("\u0000") === b.args.join("\u0000") &&- (a.cwd ?? "") === (b.cwd ?? "") &&- JSON.stringify(sortedEnv(a.env)) === JSON.stringify(sortedEnv(b.env)) &&- a.isTest === b.isTest &&- (a.debugAdapter ?? "") === (b.debugAdapter ?? "") &&- a.detected === b.detected- );-}--function sortedEnv(env: RunConfig["env"]) {- return Object.entries(env).sort(([a], [b]) => a.localeCompare(b));-}-let counter = 0;export function uid(): string {const rnd =diff --git a/src/features/run/goModules.ts b/src/features/run/goModules.tsindex 4b7f6d800..5b55a99f1 100644--- a/src/features/run/goModules.ts+++ b/src/features/run/goModules.ts@@ -34,7 +34,3 @@ export async function loadGoModules(root: string | null, configs: readonly RunCo}),);}--export function clearGoModules() {- known.clear();-}diff --git a/src/features/run/store.ts b/src/features/run/store.tsindex 44119de27..b3fe90994 100644--- a/src/features/run/store.ts+++ b/src/features/run/store.ts@@ -245,10 +245,6 @@ function persistTemporary() {);}-export function isTemporary(id: string | null | undefined): boolean {- return !!id && useRun.getState().temporary.includes(id);-}-/*** Selects the configuration for a gutter / context run: a saved or detected* configuration with the same id is reused, otherwise `config` becomes adiff --git a/src/features/run/testing/index.ts b/src/features/run/testing/index.tsindex 0a7e6cbed..0409ea1cd 100644--- a/src/features/run/testing/index.ts+++ b/src/features/run/testing/index.ts@@ -7,9 +7,9 @@ import { jvmParser } from "./jvm";import { pytestParser } from "./pytest";import type { TestEvent, TestOutputParser } from "./types";-export type { TestEvent, TestOutputParser, TestLocation, TestStatus } from "./types";+export type { TestEvent, TestOutputParser, TestStatus } from "./types";export { parseDuration } from "./types";-export { TestResults, nodeStatus, type TestNode, type TestCounts } from "./results";+export { TestResults, nodeStatus, type TestNode } from "./results";export { cargoParser, goParser, jsParser, jvmParser, pytestParser };/** Runs several parsers side by side (unknown tool: e.g. `make test`). */diff --git a/src/features/run/types.ts b/src/features/run/types.tsindex d685482ce..98527960d 100644--- a/src/features/run/types.ts+++ b/src/features/run/types.ts@@ -4,12 +4,7 @@* command line. Other features contribute types with `registerRunConfigType`.*/import type { RunConfig } from "@/platform/ipc";-import {- registerRunConfigType,- runConfigTypes,- useRunConfigTypes,- type RunConfigTypeContribution,-} from "@/workbench/contributions";+import { registerRunConfigType, useRunConfigTypes, type RunConfigTypeContribution } from "@/workbench/contributions";import { formatArgs, parseArgs, uid, uniqueName } from "./configs";import {applicationType,@@ -322,10 +317,6 @@ export function typeFor(kind: string): RunConfigTypeContribution | undefined {return useRunConfigTypes.getState().types.get(kind);}-export { runConfigTypes };--export const isCompound = (c: Pick<RunConfig, "kind">) => c.kind === COMPOUND;-/** Only Debug applies to `c` (Remote JVM Debug, Go Remote…): it attaches and launches no process. */export const isDebugOnly = (c: Pick<RunConfig, "kind">, type = typeFor(c.kind)) => !!type?.debugOnly;diff --git a/src/features/services/store.ts b/src/features/services/store.tsindex 9534fe59d..7b51c2e9a 100644--- a/src/features/services/store.ts+++ b/src/features/services/store.ts@@ -69,12 +69,6 @@ export function endpointOf(connId: string): DockerEndpoint {return connections().find((c) => c.id === connId)?.endpoint ?? { kind: "default" };}-/** The docker executable (for run configurations and terminals), from any snapshot. */-export function dockerExecutable(): string {- for (const c of Object.values(useServices.getState().conns)) if (c.snapshot?.executable) return c.snapshot.executable;- return "docker";-}-function patchConn(id: string, patch: Partial<ConnectionState>) {useServices.setState((s) => ({ conns: { ...s.conns, [id]: { ...connectionState(id, s), ...patch } } }));}diff --git a/src/features/services/tree.ts b/src/features/services/tree.tsindex 1bd11a455..ad635ba10 100644--- a/src/features/services/tree.ts+++ b/src/features/services/tree.ts@@ -93,12 +93,3 @@ export function addServiceMenu(providers = serviceProviders()): MenuItem[] {const groups = providers.map((p) => p.addMenu?.() ?? []).filter((g) => g.length > 0);return groups.flatMap((g, i) => (i === 0 ? g : [{ kind: "separator" } as MenuItem, ...g]));}--/** The selected node and its provider. */-export function selectedService(): (Located & { contribution: ServiceProviderContribution | undefined }) | null {- const { roots, selectedKey } = useServicesTree.getState();- if (!selectedKey) return null;- const found = indexTree(roots).get(selectedKey);- if (!found) return null;- return { ...found, contribution: serviceProviders().find((p) => p.id === found.provider) };-}diff --git a/src/features/settings/languages/ProjectStructurePage.tsx b/src/features/settings/languages/ProjectStructurePage.tsxindex e637de0ea..1bb596913 100644--- a/src/features/settings/languages/ProjectStructurePage.tsx+++ b/src/features/settings/languages/ProjectStructurePage.tsx@@ -339,5 +339,3 @@ export function ProjectStructurePage() {</div>);}--export default ProjectStructurePage;diff --git a/src/features/settings/languages/PythonInterpreterPage.tsx b/src/features/settings/languages/PythonInterpreterPage.tsxindex c2960b17b..ed5fdb4ea 100644--- a/src/features/settings/languages/PythonInterpreterPage.tsx+++ b/src/features/settings/languages/PythonInterpreterPage.tsx@@ -330,5 +330,3 @@ export function PythonInterpreterPage() {</div>);}--export default PythonInterpreterPage;diff --git a/src/features/settings/pages/builtins.tsx b/src/features/settings/pages/builtins.tsxindex 3904f2a53..645000c4a 100644--- a/src/features/settings/pages/builtins.tsx+++ b/src/features/settings/pages/builtins.tsx@@ -4,8 +4,6 @@ import { useSetting } from "../components/context";import { KeymapPage, keymapSearchLabels } from "../keymap/KeymapPage";import { RecognizedFileTypes } from "./FileTypes";import type { PageSpec } from "./spec";--export { APPEARANCE_GROUP } from "./behavior";export const EDITOR_GROUP = "Editor";function ExcludeRow() {diff --git a/src/features/templates/editor.ts b/src/features/templates/editor.tsindex 1ff51930a..d4e432a59 100644--- a/src/features/templates/editor.ts+++ b/src/features/templates/editor.ts@@ -64,7 +64,7 @@ export const templateDoc = Facet.define<TemplateDocInfo, TemplateDocInfo>({* The LSP completion uses `override`, so it must merge sources found under* this key (`state.languageDataAt<CompletionSource>(EXTRA_COMPLETION_KEY, pos)`).*/-export const EXTRA_COMPLETION_KEY = "openideaCompletion";+const EXTRA_COMPLETION_KEY = "openideaCompletion";/*** Language-data key for a lookup restricted to one source: `(state) =>diff --git a/src/features/templates/index.ts b/src/features/templates/index.tsindex daf9e4e8f..de5b3ca05 100644--- a/src/features/templates/index.ts+++ b/src/features/templates/index.ts@@ -24,8 +24,6 @@ import { tagAtCaret, updateTag } from "./emmet/editor";import { promptAbbreviation, UpdateTagDialogHost } from "./emmet/UpdateTagDialog";import { tx } from "@/platform/i18n";-export { EXTRA_COMPLETION_KEY } from "./editor";-const EDITOR_WHEN = "textEditorActive && !editorReadOnly && (editorFocus || popupOpen || !toolWindowFocus)";const MARKUP_PATH = /\.(html?|xhtml|shtml|vue|svelte|xml)$/i;diff --git a/src/features/templates/live/store.ts b/src/features/templates/live/store.tsindex 3790d0f5d..e048d919a 100644--- a/src/features/templates/live/store.ts+++ b/src/features/templates/live/store.ts@@ -65,15 +65,6 @@ export function resetTemplate(id: string) {commit({ templates, deleted: c.deleted.filter((d) => d !== id) });}-export function resetAllTemplates() {- commit({- templates: Object.fromEntries(- Object.entries(useLiveTemplates.getState().custom.templates).filter(([id]) => !BUILTIN_IDS.has(id)),- ),- deleted: [],- });-}-export function isModifiedBuiltin(id: string): boolean {return BUILTIN_IDS.has(id) && id in useLiveTemplates.getState().custom.templates;}diff --git a/src/features/tools/LanguageServersPage.tsx b/src/features/tools/LanguageServersPage.tsxindex 509d3725e..6b0d722c2 100644--- a/src/features/tools/LanguageServersPage.tsx+++ b/src/features/tools/LanguageServersPage.tsx@@ -444,5 +444,3 @@ export function LanguageServersPage() {</div>);}--export default LanguageServersPage;diff --git a/src/features/vcs/branchOps.ts b/src/features/vcs/branchOps.tsindex 07c15ca38..b26dc2518 100644--- a/src/features/vcs/branchOps.ts+++ b/src/features/vcs/branchOps.ts@@ -468,7 +468,3 @@ export function toggleFavoriteBranch(b: Branch) {// Favorites last for the session only.}}--export function notifyNotGit() {- notifications().notify({ group: "vcs", level: "warning", title: "The project is not under Git version control" });-}diff --git a/src/features/vcs/comparison/iterables.ts b/src/features/vcs/comparison/iterables.tsindex ad3699dfd..254322275 100644--- a/src/features/vcs/comparison/iterables.ts+++ b/src/features/vcs/comparison/iterables.ts@@ -45,23 +45,6 @@ export const invert = (it: DiffIterable): DiffIterable => create(unchanged(it),export const createUnchanged = (ranges: readonly Range[], length1: number, length2: number) =>invert(create(ranges, length1, length2));-/** Both changed and unchanged ranges in order, without empty ones (DiffIterableUtil.iterateAll). */-export function iterateAll(it: DiffIterable): [Range, boolean][] {- const out: [Range, boolean][] = [];- let last1 = 0;- let last2 = 0;- for (const c of it.changes) {- const gap = range(last1, c.start1, last2, c.start2);- if (!isEmptyRange(gap)) out.push([gap, true]);- out.push([c, false]);- last1 = c.end1;- last2 = c.end2;- }- const tail = range(last1, it.length1, last2, it.length2);- if (!isEmptyRange(tail)) out.push([tail, true]);- return out;-}-/** Changes of sequences of keys compared by equality (DiffIterableUtil.diff). */export const diffSequences = <T>(a: readonly T[], b: readonly T[]): DiffIterable =>create(diffKeys(a, b), a.length, b.length);diff --git a/src/features/vcs/logStore.ts b/src/features/vcs/logStore.tsindex 8a34fdaa7..04c66e44e 100644--- a/src/features/vcs/logStore.ts+++ b/src/features/vcs/logStore.ts@@ -64,9 +64,6 @@ interface LogState {generation: number;}-/** Fixed content tabs of the Git tool window. */-export type GitTab = "changes" | "shelf" | "stashes" | "log" | "console" | "worktrees";-/** A log tab of its own (IDEA's "History: file" / "Log: branch" tabs): its own filters and view. */export interface LogTab {id: string;diff --git a/src/features/vcs/model.ts b/src/features/vcs/model.tsindex 43cb0e6c6..b39b112b2 100644--- a/src/features/vcs/model.ts+++ b/src/features/vcs/model.ts@@ -78,17 +78,6 @@ export function statusDecorations(status: readonly FileStatus[], propagate = trureturn new Map(entries.map(([p, d]) => [p, d]));}-/** Short letter for change lists ("M", "A", "D", "R", "U", "C"). */-export const KIND_LETTER: Record<EffectiveKind, string> = {- modified: "M",- renamed: "R",- added: "A",- deleted: "D",- untracked: "U",- ignored: "I",- conflicted: "C",-};-export function relTo(root: string, path: string): string {return path.startsWith(root + "/") ? path.slice(root.length + 1) : path;}diff --git a/src/platform/colorScheme.ts b/src/platform/colorScheme.tsindex 8ba950c8c..3da62ea98 100644--- a/src/platform/colorScheme.ts+++ b/src/platform/colorScheme.ts@@ -268,11 +268,6 @@ export function themeScheme(return root.dataset.contrast === "high" || root.dataset.theme === "dark-hc" ? "dark-hc" : "dark";}-/** Base value of an attribute variable in a scheme. */-export function schemeValue(id: SchemeId, cssVar: string): string | undefined {- return schemeTokens(id).get(cssVar);-}-/** An explicit Bold / regular attribute: the editor's configured bold or main weight. */export function boldWeight(bold: boolean): string {return bold ? "var(--fw-code-bold, 700)" : "var(--fw-code, 400)";diff --git a/src/platform/i18n.ts b/src/platform/i18n.tsindex 8e477b291..d4e6b6fff 100644--- a/src/platform/i18n.ts+++ b/src/platform/i18n.ts@@ -36,8 +36,6 @@ export const DEFAULT_LOCALE = "en";export const SUPPORTED_LOCALES = ["en", "zh"] as const;export type Locale = (typeof SUPPORTED_LOCALES)[number];-const LOCALE_NAMES: Record<Locale, string> = { en: "English", zh: "中文" };-const loaders = import.meta.glob<Catalog>(["./locales/*.json", "!./locales/en.json"], { import: "default" });const textLoaders = import.meta.glob<Catalog>("./locales/text/*.json", { import: "default" });@@ -65,10 +63,6 @@ export function resolveLocale(input: string | null | undefined): Locale {return (SUPPORTED_LOCALES as readonly string[]).includes(base) ? (base as Locale) : DEFAULT_LOCALE;}-export function localeDisplayName(locale: Locale): string {- return LOCALE_NAMES[locale];-}-let fallbackCache: Catalog | null = null;function fallback(): Catalog {diff --git a/src/platform/languageSettings.ts b/src/platform/languageSettings.tsindex 08ceaab49..d0729e635 100644--- a/src/platform/languageSettings.ts+++ b/src/platform/languageSettings.ts@@ -157,14 +157,6 @@ export function validateProjectStructure(raw: unknown): ProjectStructureValid {};}-/** The "Exclude files" name patterns (`*.log;tmp*`). */-export function excludeFilePatterns(excludeFiles: string): string[] {- return excludeFiles- .split(";")- .map((p) => p.trim())- .filter(Boolean);-}-/** Root kinds, as in IDEA's Project Structure (`ide-workspace::roots::RootKind`). */export type FolderRole = "source" | "test" | "resources" | "testResources" | "excluded";@@ -283,8 +275,6 @@ export function restoreDetected(ps: ProjectStructureValid, detected: readonly Roreturn { ...ps, unmarked: ps.unmarked.filter((p) => !detected.some((d) => d.path === folderKey(p))) };}-export const PROJECT_STRUCTURE_KEY = (role: FolderRole) => `projectStructure.${ROLE_KEYS[role]}`;-/** Settings keys of `ProjectStructureValid`, in a stable order. */export const PROJECT_STRUCTURE_KEYS = ["sourceRoots",diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.jsonindex 633ca3fd4..1569f5aca 100644--- a/src/platform/locales/text/zh.json+++ b/src/platform/locales/text/zh.json@@ -2073,7 +2073,6 @@"The clipboard does not contain a patch": "剪贴板中没有补丁","The patch file is empty": "补丁文件为空","The project is not a Git repository.": "该项目不是 Git 仓库。",- "The project is not under Git version control": "项目不受 Git 版本控制","The project path is always shown in the status bar navigation bar.": "项目路径始终显示在状态栏导航栏中。","The remote contains commits that are not in your branch. Update the branch, then push again.": "远程包含您的分支中没有的提交。请更新分支,然后再次推送。","The report covers no files": "报告未覆盖任何文件",diff --git a/src/platform/virtualDocs.ts b/src/platform/virtualDocs.tsindex 1baa20af4..8a31ef0ef 100644--- a/src/platform/virtualDocs.ts+++ b/src/platform/virtualDocs.ts@@ -64,8 +64,3 @@ export function virtualDocument(uri: string): Promise<VirtualDocument> {}return p;}--/** Test hook. */-export function _clearVirtualDocuments() {- cache.clear();-}diff --git a/src/ui/AppLogo.module.css b/src/ui/AppLogo.module.cssdeleted file mode 100644index 4f3c1676c..000000000--- a/src/ui/AppLogo.module.css+++ /dev/null@@ -1,6 +0,0 @@-.logo {- flex: none;- display: block;- -webkit-user-drag: none;- user-select: none;-}diff --git a/src/ui/AppLogo.tsx b/src/ui/AppLogo.tsxdeleted file mode 100644index 1e884c891..000000000--- a/src/ui/AppLogo.tsx+++ /dev/null@@ -1,26 +0,0 @@-import clsx from "clsx";-import markUrl from "../../src-tauri/icons/source/openidea-mark.svg";-import styles from "./AppLogo.module.css";--export interface AppLogoProps {- /** Rendered edge length in CSS pixels. */- size?: number;- /** Accessible name; omit when the product name is shown next to the logo. */- label?: string;- className?: string;-}--/** The product mark (full-bleed tile variant, legible down to 16px). */-export function AppLogo({ size = 32, label, className }: AppLogoProps) {- return (- <img- className={clsx(styles.logo, className)}- src={markUrl}- width={size}- height={size}- alt={label ?? ""}- aria-hidden={label ? undefined : true}- draggable={false}- />- );-}diff --git a/src/ui/Menu.tsx b/src/ui/Menu.tsxindex 7647b8eb7..dfa141caf 100644--- a/src/ui/Menu.tsx+++ b/src/ui/Menu.tsx@@ -10,7 +10,6 @@ import {useRef,useState,type KeyboardEvent as ReactKeyboardEvent,- type MouseEvent as ReactMouseEvent,} from "react";import clsx from "clsx";import { create } from "zustand";@@ -325,17 +324,6 @@ export function hideContextMenu() {useContextMenuStore.setState({ menu: null });}-/** Returns an `onContextMenu` handler showing `items` (or the result of `items(e)`). */-export function useContextMenu(items: MenuItem[] | ((e: ReactMouseEvent) => MenuItem[] | null)) {- return (e: ReactMouseEvent) => {- const list = typeof items === "function" ? items(e) : items;- if (!list || !list.length) return;- e.preventDefault();- e.stopPropagation();- showContextMenu(e, list);- };-}-/** Renders the active context menu; mount once (the workbench does). */export function ContextMenuHost() {const menu = useContextMenuStore((s) => s.menu);diff --git a/src/ui/Splitter.tsx b/src/ui/Splitter.tsxindex c74530e72..8c71a47f9 100644--- a/src/ui/Splitter.tsx+++ b/src/ui/Splitter.tsx@@ -6,9 +6,6 @@ import { Group, Panel, Separator, type GroupProps, type PanelProps, type Separatimport clsx from "clsx";import styles from "./Splitter.module.css";-export type { PanelImperativeHandle, Layout } from "react-resizable-panels";-export { usePanelRef, useGroupRef } from "react-resizable-panels";-export function SplitGroup({ className, ...rest }: GroupProps) {return <Group className={clsx(styles.group, className)} {...rest} />;}diff --git a/src/ui/Tooltip.tsx b/src/ui/Tooltip.tsxindex cbf9c8f81..893e2b54c 100644--- a/src/ui/Tooltip.tsx+++ b/src/ui/Tooltip.tsx@@ -3,7 +3,7 @@* `data-tooltip-shortcut`) gets one, shown by the single `<TooltipHost/>` after* 600ms of hover. Hidden on scroll, key press, pointer down or leave.*/-import { cloneElement, isValidElement, useEffect, useRef, useState, type ReactElement } from "react";+import { useEffect, useRef, useState } from "react";import { createPortal } from "react-dom";import { computePosition, flip, offset, shift } from "@floating-ui/react-dom";import styles from "./Tooltip.module.css";@@ -19,18 +19,6 @@ export function tooltipAttrs(text: string | undefined, shortcut?: string): Recorreturn attrs;}-export interface TooltipProps {- content: string;- shortcut?: string;- children: ReactElement;-}--/** Attaches a tooltip to its single child element. */-export function Tooltip({ content, shortcut, children }: TooltipProps) {- if (!isValidElement(children)) return children;- return cloneElement(children, tooltipAttrs(content, shortcut));-}-interface Shown {text: string;shortcut?: string;diff --git a/src/ui/index.ts b/src/ui/index.tsindex 05accd68c..51362d811 100644--- a/src/ui/index.ts+++ b/src/ui/index.ts@@ -13,9 +13,7 @@ export {registerDropTarget,setDragRequiresAlt,startPointerDrag,- type DragData,type DragSession,- type DropTarget,} from "./pointerDrag";export * from "./Tree";export * from "./List";@@ -26,11 +24,10 @@ export * from "./Splitter";export * from "./SourcePreview";export * from "./Feedback";export * from "./HighlightedText";-export { fuzzyMatch, indexRuns, wordMatch } from "./match";+export { fuzzyMatch, wordMatch } from "./match";export { badgeKind } from "./symbolKind";-export { acquirePopup, isPopupOpen, openLayer } from "./popupState";+export { acquirePopup, isPopupOpen } from "./popupState";export * from "./BarButton";-export * from "./AppLogo";export { lazyComponent, prefetchLazyComponents } from "./lazy";export { T } from "./T";export { selectableText, copyMenuFor, copyText } from "./selectableText";diff --git a/tsconfig.node.json b/tsconfig.node.jsonindex 31cef4be6..6858004ef 100644--- a/tsconfig.node.json+++ b/tsconfig.node.json@@ -6,5 +6,5 @@"allowSyntheticDefaultImports": true,"types": ["node"]},- "include": ["vite.config.ts"]+ "include": ["vite.config.ts", "knip.ts"]}