diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c56540..2d3c81c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,12 @@ - Keep inactive-view insertion results separate from unrelated current-working-copy conflict paths; retain genuine target conflict failures. - Refresh the native descriptor fingerprint after integrating Atomic dev's vault-evidence replay contract, retaining strict runtime compatibility checks. - Regenerate the vendored nodeatomic codecs, declarations, and descriptor fingerprint from published Atomic v0.22.0; document the exact compatible runtime and retain strict rejection of mismatched contracts. -- Upgrade vulnerable production dependencies (markdown-it, mermaid, sanitize-html, katex, Puppeteer, cspell, highlight.js, Shiki) and remove unused gRPC packages; `npm audit --omit=dev` is clean. +- Upgrade vulnerable production dependencies (markdown-it, mermaid, sanitize-html, katex, Puppeteer, highlight.js, Shiki) and remove unused gRPC packages; `npm audit --omit=dev` is clean. - Load Puppeteer 25 as an ESM runtime and make webview/graph build steps cross-platform. - Add CI for typecheck, tests, build, universal VSIX packaging, and production audit; set the public `atomicdotdev` publisher metadata and 1.0.0 version. - Fix release preparation on the `release` branch, synchronize and commit lockfile versions, and accept dated changelog headings without requiring a horizontal-rule separator. - Use an empty regular Git configuration file for release regression fixtures instead of an OS null-device path, which Git for Windows rejects. +- Remove the built-in spellchecker, bundled cspell dependencies, spelling toolbar/setting, and background checks; retain external diagnostics and replacement quick fixes from optional extensions such as Code Spell Checker. ## 0.2.12 - Package one universal, JavaScript-only VSIX; Atomic's platform library is supplied by the separate Atomic installation on the extension host. diff --git a/README.md b/README.md index 8194ebd..5599e6f 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ Recognized intents require YAML `entry_type: intent`. Metadata that is managed b Status suggestions are editing conveniences, not a schema. Setting a criterion to `met` does not manufacture evidence or establish conformance. The validation/attestation panel explicitly says **not checked**: no signature or SHACL result is inferred from author fields or hashes. +## Optional spellchecking + +Sherpa does not bundle a spellchecker. For spelling diagnostics and replacement suggestions, optionally install [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) in VS Code. No separate cspell CLI installation is needed. Sherpa displays diagnostics and supported replacement quick fixes supplied by installed extensions in its ticket/source editor. + +Configure spelling through the external extension; Sherpa has no spelling setting or toolbar toggle. Editing, saving, and Atomic features do not require a spelling extension. + ## Atomic version control Open a **trusted, local filesystem** workspace in an Atomic repository, then open **Source Control**: diff --git a/package-lock.json b/package-lock.json index 5b74e38..e4dc5c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,6 @@ "@lezer/highlight": "^1.2.5", "@replit/codemirror-vim": "^6.4.0", "@types/vscode": "^1.109.0", - "cspell-lib": "^10.4.0", "d3-drag": "3.0.0", "d3-force": "3.0.0", "d3-selection": "3.0.0", @@ -543,539 +542,6 @@ "w3c-keyname": "^2.2.4" } }, - "node_modules/@cspell/cspell-bundled-dicts": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-10.4.0.tgz", - "integrity": "sha512-ey23dut7NdnOsQQinQhROFZUh4LvLhJnnZCiq7y+KXMngdqXnIAZuEnnwXk3IfdOX+tycDC8OuMssLXDJ3Fnxw==", - "license": "MIT", - "dependencies": { - "@cspell/dict-ada": "^4.1.1", - "@cspell/dict-al": "^1.1.1", - "@cspell/dict-aws": "^4.0.17", - "@cspell/dict-bash": "^4.2.3", - "@cspell/dict-companies": "^3.2.13", - "@cspell/dict-cpp": "^7.1.3", - "@cspell/dict-cryptocurrencies": "^5.0.5", - "@cspell/dict-csharp": "^4.0.8", - "@cspell/dict-css": "^4.1.2", - "@cspell/dict-dart": "^2.3.2", - "@cspell/dict-data-science": "^2.0.16", - "@cspell/dict-django": "^4.1.7", - "@cspell/dict-docker": "^1.1.17", - "@cspell/dict-dotnet": "^5.0.15", - "@cspell/dict-elixir": "^4.0.8", - "@cspell/dict-en_us": "^4.4.41", - "@cspell/dict-en-common-misspellings": "^2.2.5", - "@cspell/dict-en-gb-mit": "^3.1.30", - "@cspell/dict-filetypes": "^3.0.18", - "@cspell/dict-flutter": "^1.1.1", - "@cspell/dict-fonts": "^4.0.6", - "@cspell/dict-fsharp": "^1.1.1", - "@cspell/dict-fullstack": "^3.2.9", - "@cspell/dict-gaming-terms": "^1.1.3", - "@cspell/dict-git": "^3.1.1", - "@cspell/dict-golang": "^6.0.29", - "@cspell/dict-google": "^1.0.9", - "@cspell/dict-haskell": "^4.0.6", - "@cspell/dict-html": "^4.0.16", - "@cspell/dict-html-symbol-entities": "^4.0.5", - "@cspell/dict-java": "^5.0.12", - "@cspell/dict-julia": "^1.1.1", - "@cspell/dict-k8s": "^1.0.13", - "@cspell/dict-kotlin": "^1.1.1", - "@cspell/dict-latex": "^5.1.0", - "@cspell/dict-lorem-ipsum": "^4.0.5", - "@cspell/dict-lua": "^4.0.8", - "@cspell/dict-makefile": "^1.0.5", - "@cspell/dict-markdown": "^2.0.18", - "@cspell/dict-monkeyc": "^1.1.2", - "@cspell/dict-node": "^5.0.9", - "@cspell/dict-npm": "^5.2.54", - "@cspell/dict-php": "^4.1.3", - "@cspell/dict-powershell": "^5.0.17", - "@cspell/dict-public-licenses": "^2.0.17", - "@cspell/dict-python": "^4.5.2", - "@cspell/dict-r": "^2.1.1", - "@cspell/dict-ruby": "^5.1.4", - "@cspell/dict-rust": "^4.1.2", - "@cspell/dict-scala": "^5.0.11", - "@cspell/dict-shell": "^1.2.0", - "@cspell/dict-software-terms": "^5.4.8", - "@cspell/dict-sql": "^2.2.1", - "@cspell/dict-svelte": "^1.0.7", - "@cspell/dict-swift": "^2.0.6", - "@cspell/dict-terraform": "^1.1.4", - "@cspell/dict-typescript": "^3.2.3", - "@cspell/dict-vue": "^3.0.5", - "@cspell/dict-zig": "^1.0.0" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/cspell-performance-monitor": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-performance-monitor/-/cspell-performance-monitor-10.4.0.tgz", - "integrity": "sha512-0hCqI8pR0waFKKOR3SZ4VtWddx7HZTr0v7MPCPG0IpaqMzzaibrXn9AtFCe+9T1+UDQrM109YKS+yr0c6xVvMQ==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/cspell-pipe": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-10.4.0.tgz", - "integrity": "sha512-cXHgST9ySpECyiE5ZK7TcwBqrCb3h9X49j/lSDcWNAVp7GkwnPfcdylH+Zq/VfYMlHad24z8CNXd5H91O9DhEA==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/cspell-resolver": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-10.4.0.tgz", - "integrity": "sha512-uyI9qX8hagtcFtRTElYGXXyVhhnVxPBSf1Ltds9AlU9cktPOFYeTXQOfBR+Dpt9dCruzX29ZJbd3hR1i5yryZg==", - "license": "MIT", - "dependencies": { - "global-directory": "^5.0.0" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/cspell-service-bus": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-10.4.0.tgz", - "integrity": "sha512-IZzx+EWADkN5xbFrW+VS+JQ52+w5tWaZNxDgGa+0Mv79hks6wNa2Vcnce+9vGcBJYgA24VcuAfekI38tYzcDtw==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/cspell-types": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-10.4.0.tgz", - "integrity": "sha512-LTOrZcDSHj5BkeNSvimuV3AMF7gWjxzXUdQ7zYT/h/57/5flHuE6NPKSXS69ty8vJM0WrVh35L5aDxnCPfDzXA==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/dict-ada": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-ada/-/dict-ada-4.1.1.tgz", - "integrity": "sha512-E+0YW9RhZod/9Qy2gxfNZiHJjCYFlCdI69br1eviQQWB8yOTJX0JHXLs79kOYhSW0kINPVUdvddEBe6Lu6CjGQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-al": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-al/-/dict-al-1.1.1.tgz", - "integrity": "sha512-sD8GCaZetgQL4+MaJLXqbzWcRjfKVp8x+px3HuCaaiATAAtvjwUQ5/Iubiqwfd1boIh2Y1/3EgM3TLQ7Q8e0wQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-aws": { - "version": "4.0.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-aws/-/dict-aws-4.0.17.tgz", - "integrity": "sha512-ORcblTWcdlGjIbWrgKF+8CNEBQiLVKdUOFoTn0KPNkAYnFcdPP0muT4892h7H4Xafh3j72wqB4/loQ6Nti9E/w==", - "license": "MIT" - }, - "node_modules/@cspell/dict-bash": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-bash/-/dict-bash-4.2.3.tgz", - "integrity": "sha512-ljUZoKHbDqw5Sx0qpL2qTUlmkmr+vhZH/sCNrNaBZKTbdgiswErSnIF1jRbGmEitJNxHRHWsuZyVgnTGfVO1Yw==", - "license": "MIT", - "dependencies": { - "@cspell/dict-shell": "1.2.0" - } - }, - "node_modules/@cspell/dict-companies": { - "version": "3.2.14", - "resolved": "https://registry.npmjs.org/@cspell/dict-companies/-/dict-companies-3.2.14.tgz", - "integrity": "sha512-3EeCXEjd6ocbKNEHsPHViHJrDduJsVo9ixr0EMrzUO6OVCXlLSCLosDUzeANQidu/u6WA1ln63uRJ9fAGAKHzw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-cpp": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@cspell/dict-cpp/-/dict-cpp-7.2.0.tgz", - "integrity": "sha512-hxz+OyQKV96/Bk2JYGsDuSOheYA5gd8KybXnoZMMu/mhZPnwhPi+qiS0Kjc0gLNbXjJ6wbBuXIQWi1UWpQBU/g==", - "license": "MIT" - }, - "node_modules/@cspell/dict-cryptocurrencies": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-cryptocurrencies/-/dict-cryptocurrencies-5.0.5.tgz", - "integrity": "sha512-R68hYYF/rtlE6T/dsObStzN5QZw+0aQBinAXuWCVqwdS7YZo0X33vGMfChkHaiCo3Z2+bkegqHlqxZF4TD3rUA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-csharp": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/@cspell/dict-csharp/-/dict-csharp-4.0.8.tgz", - "integrity": "sha512-qmk45pKFHSxckl5mSlbHxmDitSsGMlk/XzFgt7emeTJWLNSTUK//MbYAkBNRtfzB4uD7pAFiKgpKgtJrTMRnrQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-css": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@cspell/dict-css/-/dict-css-4.1.2.tgz", - "integrity": "sha512-+ylGoKdwZ2sVOCOnU2Eq5wDZx+RaVX3HoKyNHGGsFvhSw6IidQ6tH/mAPKBDofViHJoWCPNlklE0lTr6MDG3QA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-dart": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@cspell/dict-dart/-/dict-dart-2.3.2.tgz", - "integrity": "sha512-sUiLW56t9gfZcu8iR/5EUg+KYyRD83Cjl3yjDEA2ApVuJvK1HhX+vn4e4k4YfjpUQMag8XO2AaRhARE09+/rqw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-data-science": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-data-science/-/dict-data-science-2.0.17.tgz", - "integrity": "sha512-6KuM1tXc1PROGu2VJjRMIkFI3lf/1c3ReFqbjV148m5w8SwNVej4Jp6nJa2f64xyaR5Z+LSRTr5RvDDJVovP8A==", - "license": "MIT" - }, - "node_modules/@cspell/dict-django": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@cspell/dict-django/-/dict-django-4.1.7.tgz", - "integrity": "sha512-94LIxiF/StBTxDkmBhi1eoOX9D/B7gk6pabBvIZFh0gmREAU6ESqU2Wv/RfGARdueMQMPfOJka+vbtL4yKv0oA==", - "license": "WTFPL" - }, - "node_modules/@cspell/dict-docker": { - "version": "1.1.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-docker/-/dict-docker-1.1.17.tgz", - "integrity": "sha512-OcnVTIpHIYYKhztNTyK8ShAnXTfnqs43hVH6p0py0wlcwRIXe5uj4f12n7zPf2CeBI7JAlPjEsV0Rlf4hbz/xQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-dotnet": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/@cspell/dict-dotnet/-/dict-dotnet-5.0.15.tgz", - "integrity": "sha512-j2MUKPlzMeDy/mnb1EjmtkX8e6VzZdw60Qyf6vPlp7WZhUwwp2LBlKOWx7+hASjP6k4a0nDpmn77G+4upxvbZA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-elixir": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/@cspell/dict-elixir/-/dict-elixir-4.0.8.tgz", - "integrity": "sha512-CyfphrbMyl4Ms55Vzuj+mNmd693HjBFr9hvU+B2YbFEZprE5AG+EXLYTMRWrXbpds4AuZcvN3deM2XVB80BN/Q==", - "license": "MIT" - }, - "node_modules/@cspell/dict-en_us": { - "version": "4.4.43", - "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.43.tgz", - "integrity": "sha512-RK0zfFXSPi0G/zmV9YgUhS2xw9eTV/8DtQ+ouLIiRZ8ejWRt2zhAonu5di+qmIhzhQ62fg7d3tMz3WwRy82yJA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-en-common-misspellings": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/@cspell/dict-en-common-misspellings/-/dict-en-common-misspellings-2.2.6.tgz", - "integrity": "sha512-RMOmCPOJuBfcC8IVLKjs9aqssjLKmhwVI8Yw/xgEnO9trWAiUzESassDATE229xqi1sdtRIIMGHyuxlkL75Xjg==", - "license": "CC BY-SA 4.0" - }, - "node_modules/@cspell/dict-en-gb-mit": { - "version": "3.1.32", - "resolved": "https://registry.npmjs.org/@cspell/dict-en-gb-mit/-/dict-en-gb-mit-3.1.32.tgz", - "integrity": "sha512-bEASyTAzXLowmFWrZIJjeAeCpY9g3jcYDO3tVyFDL/UaAuz0UvCVgOEyg+Ym7bclijqvXmj0xXOD/cW2XWG8iw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-filetypes": { - "version": "3.0.18", - "resolved": "https://registry.npmjs.org/@cspell/dict-filetypes/-/dict-filetypes-3.0.18.tgz", - "integrity": "sha512-yU7RKD/x1IWmDLzWeiItMwgV+6bUcU/af23uS0+uGiFUbsY1qWV/D4rxlAAO6Z7no3J2z8aZOkYIOvUrJq0Rcw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-flutter": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-flutter/-/dict-flutter-1.1.1.tgz", - "integrity": "sha512-UlOzRcH2tNbFhZmHJN48Za/2/MEdRHl2BMkCWZBYs+30b91mWvBfzaN4IJQU7dUZtowKayVIF9FzvLZtZokc5A==", - "license": "MIT" - }, - "node_modules/@cspell/dict-fonts": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@cspell/dict-fonts/-/dict-fonts-4.0.6.tgz", - "integrity": "sha512-aR/0csY01dNb0A1tw/UmN9rKgHruUxsYsvXu6YlSBJFu60s26SKr/k1o4LavpHTQ+lznlYMqAvuxGkE4Flliqw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-fsharp": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-fsharp/-/dict-fsharp-1.1.1.tgz", - "integrity": "sha512-imhs0u87wEA4/cYjgzS0tAyaJpwG7vwtC8UyMFbwpmtw+/bgss+osNfyqhYRyS/ehVCWL17Ewx2UPkexjKyaBA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-fullstack": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/@cspell/dict-fullstack/-/dict-fullstack-3.2.9.tgz", - "integrity": "sha512-diZX+usW5aZ4/b2T0QM/H/Wl9aNMbdODa1Jq0ReBr/jazmNeWjd+PyqeVgzd1joEaHY+SAnjrf/i9CwKd2ZtWQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-gaming-terms": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-gaming-terms/-/dict-gaming-terms-1.1.3.tgz", - "integrity": "sha512-hLGzd/f+KX5B/5YxAXuQi4DYEfu6IKudtNFO/Nima3JLXD+8Xn+d0q6VdaBxkWVhGYlzow9o+dce+S9mNtgpMg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-git": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-git/-/dict-git-3.1.1.tgz", - "integrity": "sha512-XvuGVYj9YEu4EzntqyhH8XlTRyy57C6j8oxkIbUQfR2UYzxZGAP77XHl7qY7eC/40r/haDwnBaccyFR6BRmUCg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-golang": { - "version": "6.0.29", - "resolved": "https://registry.npmjs.org/@cspell/dict-golang/-/dict-golang-6.0.29.tgz", - "integrity": "sha512-EZCgfxrr5lPnYQLmSvB6YtpfoDFt2KKxAD4ppq2xGSIgDFXAF7Mv4doiXIFUQaynCBIEfAMl3f/uDfrIUo4fyQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-google": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@cspell/dict-google/-/dict-google-1.0.9.tgz", - "integrity": "sha512-biL65POqialY0i4g6crj7pR6JnBkbsPovB2WDYkj3H4TuC/QXv7Pu5pdPxeUJA6TSCHI7T5twsO4VSVyRxD9CA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-haskell": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@cspell/dict-haskell/-/dict-haskell-4.0.6.tgz", - "integrity": "sha512-ib8SA5qgftExpYNjWhpYIgvDsZ/0wvKKxSP+kuSkkak520iPvTJumEpIE+qPcmJQo4NzdKMN8nEfaeci4OcFAQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-html": { - "version": "4.0.16", - "resolved": "https://registry.npmjs.org/@cspell/dict-html/-/dict-html-4.0.16.tgz", - "integrity": "sha512-9B6/Cpb5YVcYgsEAlKudun1yd4ONllYS/ZibKLYea2apPR+l2vQdARnPrP9kTqa7NUNfRKl7m9Fb6k9rjimnow==", - "license": "MIT" - }, - "node_modules/@cspell/dict-html-symbol-entities": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-html-symbol-entities/-/dict-html-symbol-entities-4.0.5.tgz", - "integrity": "sha512-429alTD4cE0FIwpMucvSN35Ld87HCyuM8mF731KU5Rm4Je2SG6hmVx7nkBsLyrmH3sQukTcr1GaiZsiEg8svPA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-java": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/@cspell/dict-java/-/dict-java-5.0.12.tgz", - "integrity": "sha512-qPSNhTcl7LGJ5Qp6VN71H8zqvRQK04S08T67knMq9hTA8U7G1sTKzLmBaDOFhq17vNX/+rT+rbRYp+B5Nwza1A==", - "license": "MIT" - }, - "node_modules/@cspell/dict-julia": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-julia/-/dict-julia-1.1.1.tgz", - "integrity": "sha512-WylJR9TQ2cgwd5BWEOfdO3zvDB+L7kYFm0I9u0s9jKHWQ6yKmfKeMjU9oXxTBxIufhCXm92SKwwVNAC7gjv+yA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-k8s": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/@cspell/dict-k8s/-/dict-k8s-1.0.13.tgz", - "integrity": "sha512-ELGkS13k7K/NEfVimBSrxVTfqXvOF/Kvxj4I62YxRm8bvHbfoXgrGaOx28lPiNRz+dmu+yYtvuXbnURKtYbC6g==", - "license": "MIT" - }, - "node_modules/@cspell/dict-kotlin": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-kotlin/-/dict-kotlin-1.1.1.tgz", - "integrity": "sha512-J3NzzfgmxRvEeOe3qUXnSJQCd38i/dpF9/t3quuWh6gXM+krsAXP75dY1CzDmS8mrJAlBdVBeAW5eAZTD8g86Q==", - "license": "MIT" - }, - "node_modules/@cspell/dict-latex": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@cspell/dict-latex/-/dict-latex-5.1.0.tgz", - "integrity": "sha512-qxT4guhysyBt0gzoliXYEBYinkAdEtR2M7goRaUH0a7ltCsoqqAeEV8aXYRIdZGcV77gYSobvu3jJL038tlPAw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-lorem-ipsum": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-lorem-ipsum/-/dict-lorem-ipsum-4.0.5.tgz", - "integrity": "sha512-9a4TJYRcPWPBKkQAJ/whCu4uCAEgv/O2xAaZEI0n4y1/l18Yyx8pBKoIX5QuVXjjmKEkK7hi5SxyIsH7pFEK9Q==", - "license": "MIT" - }, - "node_modules/@cspell/dict-lua": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/@cspell/dict-lua/-/dict-lua-4.0.8.tgz", - "integrity": "sha512-N4PkgNDMu9JVsRu7JBS/3E/dvfItRgk9w5ga2dKq+JupP2Y3lojNaAVFhXISh4Y0a6qXDn2clA6nvnavQ/jjLA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-makefile": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-makefile/-/dict-makefile-1.0.5.tgz", - "integrity": "sha512-4vrVt7bGiK8Rx98tfRbYo42Xo2IstJkAF4tLLDMNQLkQ86msDlYSKG1ZCk8Abg+EdNcFAjNhXIiNO+w4KflGAQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-markdown": { - "version": "2.0.18", - "resolved": "https://registry.npmjs.org/@cspell/dict-markdown/-/dict-markdown-2.0.18.tgz", - "integrity": "sha512-KLRSwVrwKDz4n7bl2XQjzvaBZbGgx5QKkP5Ok1b24xaO3TpXsLhAbAn1mItvFlI2tF6Rkt83iYjQcYppywuf5Q==", - "license": "MIT", - "peerDependencies": { - "@cspell/dict-css": "^4.1.2", - "@cspell/dict-html": "^4.0.16", - "@cspell/dict-html-symbol-entities": "^4.0.5", - "@cspell/dict-typescript": "^3.2.3" - } - }, - "node_modules/@cspell/dict-monkeyc": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@cspell/dict-monkeyc/-/dict-monkeyc-1.1.2.tgz", - "integrity": "sha512-4VzwdSUVqyUVmAKAzMkVwVa7AkvSi1l1OHdQr58MWq4VR4NQDO8sVQSibd2PMxruXTkxJt9UwVQVHgaaVTiV1Q==", - "license": "MIT" - }, - "node_modules/@cspell/dict-node": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/@cspell/dict-node/-/dict-node-5.0.9.tgz", - "integrity": "sha512-hO+ga+uYZ/WA4OtiMEyKt5rDUlUyu3nXMf8KVEeqq2msYvAPdldKBGH7lGONg6R/rPhv53Rb+0Y1SLdoK1+7wQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-npm": { - "version": "5.2.56", - "resolved": "https://registry.npmjs.org/@cspell/dict-npm/-/dict-npm-5.2.56.tgz", - "integrity": "sha512-VqN/f97X64gYR7zVXLu2PN6t5Sm6EljZEFp4htmbOL9tGqs0XVErl9B9kwfaLlKJqfLU6vYcupjRBjqTQ6rQ4Q==", - "license": "MIT" - }, - "node_modules/@cspell/dict-php": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-php/-/dict-php-4.1.3.tgz", - "integrity": "sha512-41oKzl7rLVrrVZA/Gs0ESnP6KliEX7c+IwaaNmOL3PAoHasFDVEmIFeENIzuDdM12UcHT+MlLkAm3Qw/lS/ERA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-powershell": { - "version": "5.0.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-powershell/-/dict-powershell-5.0.17.tgz", - "integrity": "sha512-khOoIdBgKRk2scnr7888pf70yJ1Tr3RGdnYcAN0MJ2vtaNRKoOTCFc13gXUkNDHwEyhMI1h9oz3KsT180F2amw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-public-licenses": { - "version": "2.0.17", - "resolved": "https://registry.npmjs.org/@cspell/dict-public-licenses/-/dict-public-licenses-2.0.17.tgz", - "integrity": "sha512-Asdumgg3oZ4ki//b2a+beiVIsNZA5thim4t4v3lTDLY/6a8VAPmTjzC3Y2t0x7ywC/bzAhi1KW/fg8JlwHDgig==", - "license": "MIT" - }, - "node_modules/@cspell/dict-python": { - "version": "4.5.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-python/-/dict-python-4.5.3.tgz", - "integrity": "sha512-I226HEEJW4fleE0HMxRaecnzcJICFK6TOqIjqVkOJZzaVZTTjE7fojM+f5XECAwhf4BImW7HVOKMu4rMtza6ZA==", - "license": "MIT", - "dependencies": { - "@cspell/dict-data-science": "^2.0.17" - } - }, - "node_modules/@cspell/dict-r": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-r/-/dict-r-2.1.1.tgz", - "integrity": "sha512-71Ka+yKfG4ZHEMEmDxc6+blFkeTTvgKbKAbwiwQAuKl3zpqs1Y0vUtwW2N4b3LgmSPhV3ODVY0y4m5ofqDuKMw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-ruby": { - "version": "5.1.4", - "resolved": "https://registry.npmjs.org/@cspell/dict-ruby/-/dict-ruby-5.1.4.tgz", - "integrity": "sha512-Slw1dLY/pW5liJ5Fle+MIPphIdleZkIM6STDoXCN7sy298GfbfT34sJTcSZcXzZJVXiCEAvlLp+s1YNr6DuWNg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-rust": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@cspell/dict-rust/-/dict-rust-4.1.2.tgz", - "integrity": "sha512-O1FHrumYcO+HZti3dHfBPUdnDFkI+nbYK3pxYmiM1sr+G0ebOd6qchmswS0Wsc6ZdEVNiPYJY/gZQR6jfW3uOg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-scala": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/@cspell/dict-scala/-/dict-scala-5.0.11.tgz", - "integrity": "sha512-+D59847Y61KZ0MBoXJzBMtOXfFhezEb6ShjvJlL7bnryyy6iBwAfozbz7OJAe+KrEpYm+GlVV7Wy4FmJSgxBag==", - "license": "MIT" - }, - "node_modules/@cspell/dict-shell": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@cspell/dict-shell/-/dict-shell-1.2.0.tgz", - "integrity": "sha512-PVctvT22lJ49niMiakO8xieY7ELCAzjSqhejWR7bAMb5AZ9F4WDEs+XdGMnoVHWeXq7K5rcepLPmEJb+37zzIw==", - "license": "MIT" - }, - "node_modules/@cspell/dict-software-terms": { - "version": "5.4.9", - "resolved": "https://registry.npmjs.org/@cspell/dict-software-terms/-/dict-software-terms-5.4.9.tgz", - "integrity": "sha512-bB5L+OGW0F8Vt83j0XFcMEWCbCNqquLgjlQjm/iCp1jcYi/pQbqDLkXIPbINgbeG0vRqiu5yCPDFCsv4Qb6miQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-sql": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@cspell/dict-sql/-/dict-sql-2.2.1.tgz", - "integrity": "sha512-qDHF8MpAYCf4pWU8NKbnVGzkoxMNrFqBHyG/dgrlic5EQiKANCLELYtGlX5auIMDLmTf1inA0eNtv74tyRJ/vg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-svelte": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@cspell/dict-svelte/-/dict-svelte-1.0.7.tgz", - "integrity": "sha512-hGZsGqP0WdzKkdpeVLBivRuSNzOTvN036EBmpOwxH+FTY2DuUH7ecW+cSaMwOgmq5JFSdTcbTNFlNC8HN8lhaQ==", - "license": "MIT" - }, - "node_modules/@cspell/dict-swift": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@cspell/dict-swift/-/dict-swift-2.0.6.tgz", - "integrity": "sha512-PnpNbrIbex2aqU1kMgwEKvCzgbkHtj3dlFLPMqW1vSniop7YxaDTtvTUO4zA++ugYAEL+UK8vYrBwDPTjjvSnA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-terraform": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@cspell/dict-terraform/-/dict-terraform-1.1.4.tgz", - "integrity": "sha512-Ere42ilvMFvQA4GlcN0OKlruMPR6EsvaB+iTHzj2xc+NJGRK64V7yApUcWrOrSgTiM/vhWXPIsK3OMfiAiNdmA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-typescript": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/@cspell/dict-typescript/-/dict-typescript-3.2.3.tgz", - "integrity": "sha512-zXh1wYsNljQZfWWdSPYwQhpwiuW0KPW1dSd8idjMRvSD0aSvWWHoWlrMsmZeRl4qM4QCEAjua8+cjflm41cQBg==", - "license": "MIT" - }, - "node_modules/@cspell/dict-vue": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@cspell/dict-vue/-/dict-vue-3.0.5.tgz", - "integrity": "sha512-Mqutb8jbM+kIcywuPQCCaK5qQHTdaByoEO2J9LKFy3sqAdiBogNkrplqUK0HyyRFgCfbJUgjz3N85iCMcWH0JA==", - "license": "MIT" - }, - "node_modules/@cspell/dict-zig": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@cspell/dict-zig/-/dict-zig-1.0.0.tgz", - "integrity": "sha512-XibBIxBlVosU06+M6uHWkFeT0/pW5WajDRYdXG2CgHnq85b0TI/Ks0FuBJykmsgi2CAD3Qtx8UHFEtl/DSFnAQ==", - "license": "MIT" - }, - "node_modules/@cspell/dynamic-import": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-10.4.0.tgz", - "integrity": "sha512-scSwtJDqpRT/Kqzo64XR8OWzXYfdpp9Yneq99Drhqm5gXXI2BAlgjzhBnMGKa+x7eIJZVM2+D2uFeDI2xQYM2w==", - "license": "MIT", - "dependencies": { - "@cspell/url": "10.4.0", - "import-meta-resolve": "^4.2.0" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/filetypes": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-10.4.0.tgz", - "integrity": "sha512-ez0MyFxnpYN9eMkH8vGGseQPsCRwD7ZlsR+ivQ2rPx04CX7ctp015nWv71P7m+T6V05AsyAwyEGZP9vrTlB4Ig==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/rpc": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/rpc/-/rpc-10.4.0.tgz", - "integrity": "sha512-tX1YLQYPQz+p73U5OTLmOxIrsmRkpaaKrPnfrVIpK5yv3erWE8ELVZD0zK01rursbL1rW3gyOv0ShHlmoE5VNA==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/strong-weak-map": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-10.4.0.tgz", - "integrity": "sha512-y8+Hk90mA3UY4HYEWBJokvNcixQOKkRDLEr+yXSYyOJnt6MhAu8D7N567HjEVNj0e7oirXl62wpNglPfo7qAcQ==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/@cspell/url": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/@cspell/url/-/url-10.4.0.tgz", - "integrity": "sha512-8NvDv8h3eaxejAvD+crMsSEgGq6LiunfS6iD2TBAcDqskNsIpN43AMHNNRf7T7Fd/3Y413nQDBH4RmsHcNsiqg==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - } - }, "node_modules/@iconify/types": { "version": "2.0.0", "license": "MIT" @@ -2327,12 +1793,6 @@ "version": "2.0.1", "license": "Python-2.0" }, - "node_modules/array-timsort": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-timsort/-/array-timsort-1.0.3.tgz", - "integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==", - "license": "MIT" - }, "node_modules/azure-devops-node-api": { "version": "12.5.0", "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.5.0.tgz", @@ -2621,19 +2081,6 @@ "node": ">=22.12.0" } }, - "node_modules/comment-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/comment-json/-/comment-json-5.0.0.tgz", - "integrity": "sha512-uiqLcOiVDJtBP8WGkZHEP+FZIhTzP1dxvn59EfoYUi9gqupjrBWVQkO2atDrbnKPwLeotFYDsuNb26uBMqB+hw==", - "license": "MIT", - "dependencies": { - "array-timsort": "^1.0.3", - "esprima": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/confbox": { "version": "0.1.8", "license": "MIT" @@ -2649,125 +2096,6 @@ "version": "1.0.6", "license": "MIT" }, - "node_modules/cspell-config-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-10.4.0.tgz", - "integrity": "sha512-1P0xmWIlGqwsHf8he9BWNdqV2bvRBkxCv5ctj3oHBraRFS6CPjdJBptyjuM0dgTwxmxPFcuWhTG8miTvFMje5g==", - "license": "MIT", - "dependencies": { - "@cspell/cspell-types": "10.4.0", - "comment-json": "^5.0.0", - "smol-toml": "^1.9.1", - "yaml": "^2.9.1" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-dictionary": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-10.4.0.tgz", - "integrity": "sha512-FwCQBzqOxjAg+GhymrY288As9DmJqHVrkAr++0tCQ1wWFVw2Nt1W3cCKn9W987Dr+giSuNREdQFpGbQ/cHluTg==", - "license": "MIT", - "dependencies": { - "@cspell/cspell-performance-monitor": "10.4.0", - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-types": "10.4.0", - "cspell-trie-lib": "10.4.0", - "fast-equals": "^6.1.1" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-glob": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-10.4.0.tgz", - "integrity": "sha512-XnctlpRbhln7dTmJyISw7HdsXM38CW+S7Ygm5kkAEixSyceim8RJfRj2rhtofL7B6Ra6YdRmJnm2/PWDOIVzLw==", - "license": "MIT", - "dependencies": { - "@cspell/url": "10.4.0", - "picomatch": "^4.0.7" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-grammar": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-10.4.0.tgz", - "integrity": "sha512-zWxN9g0oh2tzJDM3C11prpsqF2nTw5AHpXtOslTm3D5d4ZL4BfBHRj5PFxbz3Px4fKz/KptPhxSP5yGDCNtjJg==", - "license": "MIT", - "dependencies": { - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-types": "10.4.0" - }, - "bin": { - "cspell-grammar": "bin.mjs" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-io": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-10.4.0.tgz", - "integrity": "sha512-EunMcHZbgA7PYj6172t2nPFVVWo0L7xi4awIhMay27c3vYGiA+ajowIBtIdy2MLOTSqL+XOfcjkuahXh8L8BzQ==", - "license": "MIT", - "dependencies": { - "@cspell/cspell-service-bus": "10.4.0", - "@cspell/url": "10.4.0" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-10.4.0.tgz", - "integrity": "sha512-wfqmn19pfEUjWy7UJ4xPeRwyb/LFXHxFVJ6maX87OLRuSE9fTP+cr74VANpKycd/rieuB2ffKta7l38n+Xhj/Q==", - "license": "MIT", - "dependencies": { - "@cspell/cspell-bundled-dicts": "10.4.0", - "@cspell/cspell-performance-monitor": "10.4.0", - "@cspell/cspell-pipe": "10.4.0", - "@cspell/cspell-resolver": "10.4.0", - "@cspell/cspell-types": "10.4.0", - "@cspell/dynamic-import": "10.4.0", - "@cspell/filetypes": "10.4.0", - "@cspell/rpc": "10.4.0", - "@cspell/strong-weak-map": "10.4.0", - "@cspell/url": "10.4.0", - "cspell-config-lib": "10.4.0", - "cspell-dictionary": "10.4.0", - "cspell-glob": "10.4.0", - "cspell-grammar": "10.4.0", - "cspell-io": "10.4.0", - "cspell-trie-lib": "10.4.0", - "env-paths": "^4.0.0", - "gensequence": "^8.0.8", - "import-fresh": "^4.0.1", - "resolve-from": "^5.0.0", - "vscode-languageserver-textdocument": "^1.0.15", - "vscode-uri": "^3.2.0", - "xdg-basedir": "^5.1.0" - }, - "engines": { - "node": ">=22.18.0" - } - }, - "node_modules/cspell-trie-lib": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-10.4.0.tgz", - "integrity": "sha512-3APfmYOrYEcoiDjupm3JsxLWvqa6IbJ76CqUTuIgXQH2EK0nOJ5SRKSTNP6AplDtalCs0o6VllbiRX6S81g8yw==", - "license": "MIT", - "engines": { - "node": ">=22.18.0" - }, - "peerDependencies": { - "@cspell/cspell-types": "10.4.0" - } - }, "node_modules/cytoscape": { "version": "3.34.3", "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.34.3.tgz", @@ -3545,21 +2873,6 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/env-paths": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-4.0.0.tgz", - "integrity": "sha512-pxP8eL2SwwaTRi/KHYwLYXinDs7gL3jxFcBYmEdYfZmZXbaVDvdppd0XBU8qVz03rDfKZMXg1omHCbsJjZrMsw==", - "license": "MIT", - "dependencies": { - "is-safe-filename": "^0.1.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", @@ -3681,6 +2994,7 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", @@ -3716,15 +3030,6 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", "license": "MIT" }, - "node_modules/fast-equals": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.2.2.tgz", - "integrity": "sha512-n+XqoarWCgcar0O3om3DeNYx6xTuLWGTUF1bRZ9iuO00tsPepzP1L4V7rqtxxZ4PEya34UCESReimFvxmEVwIA==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/fastdom": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/fastdom/-/fastdom-1.0.12.tgz", @@ -3790,15 +3095,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gensequence": { - "version": "8.0.8", - "resolved": "https://registry.npmjs.org/gensequence/-/gensequence-8.0.8.tgz", - "integrity": "sha512-omMVniXEXpdx/vKxGnPRoO2394Otlze28TyxECbFVyoSpZ9H3EO7lemjcB12OpQJzRW4e5tt/dL1rOxry6aMHg==", - "license": "MIT", - "engines": { - "node": ">=20" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -3910,21 +3206,6 @@ "node": ">=10" } }, - "node_modules/global-directory": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/global-directory/-/global-directory-5.0.0.tgz", - "integrity": "sha512-1pgFdhK3J2LeM+dVf2Pd424yHx2ou338lC0ErNP2hPx4j8eW1Sp0XqSjNxtk6Tc4Kr5wlWtSvz8cn2yb7/SG/w==", - "license": "MIT", - "dependencies": { - "ini": "6.0.0" - }, - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -4142,28 +3423,6 @@ "node": ">=0.10.0" } }, - "node_modules/import-fresh": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-4.0.1.tgz", - "integrity": "sha512-/XFeXYgkuWgbtqPC7qPKvciXTvhtz7WMNQKQsAM1Kz+j0I5OWJDrybfiya6QtHF9oEvPkLwTHmC9+4OR/MmfIA==", - "license": "MIT", - "engines": { - "node": ">=22.15" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-meta-resolve": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", - "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -4183,15 +3442,6 @@ "dev": true, "license": "ISC" }, - "node_modules/ini": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", - "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", - "license": "ISC", - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, "node_modules/internmap": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/internmap/-/internmap-2.0.3.tgz", @@ -4301,18 +3551,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-safe-filename": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-safe-filename/-/is-safe-filename-0.1.1.tgz", - "integrity": "sha512-4SrR7AdnY11LHfDKTZY1u6Ga3RuxZdl3YKWWShO5iyuG5h8QS4GD2tOb04peBJ5I7pXbR+CGBNEhTcwK+FzN3g==", - "license": "MIT", - "engines": { - "node": ">=20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/is-wsl": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", @@ -5600,6 +4838,7 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -5854,15 +5093,6 @@ "lodash": "^4.17.21" } }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, "node_modules/retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", @@ -6178,18 +5408,6 @@ "dev": true, "license": "ISC" }, - "node_modules/smol-toml": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/smol-toml/-/smol-toml-1.9.1.tgz", - "integrity": "sha512-j7WyPdf0CJoutMzMoPLF/bVXHtKZIT9Rb4eGeEbWw8X2t5oirjPgpL+OpaENZrILYaXqYwnVH+qgUwVbl+pUJQ==", - "license": "BSD-3-Clause", - "engines": { - "node": ">= 18" - }, - "funding": { - "url": "https://github.com/sponsors/cyyynthia" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -6594,18 +5812,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.16", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.16.tgz", - "integrity": "sha512-qeNEuOi9a3qkqRf7Gfez2WL2VwlBTLCNekHBGO9kxPVUp9XuY15yfTJ9jwvOwKI0I2MhUUfZq95NSp+LK1CLQg==", - "license": "MIT" - }, - "node_modules/vscode-uri": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.2.0.tgz", - "integrity": "sha512-m2gXo3bn0G1kT9InzMf07fTbqMbGtyckj3bH5ktLO+1Ssv+yiATZ4dhwaQv9UZWxJh6E9IFGnQyjgWVDWVBDrg==", - "license": "MIT" - }, "node_modules/w3c-keyname": { "version": "2.2.8", "license": "MIT" @@ -6704,18 +5910,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/xdg-basedir": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-5.1.0.tgz", - "integrity": "sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/xml2js": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", diff --git a/package.json b/package.json index fba926c..b7e4a4b 100644 --- a/package.json +++ b/package.json @@ -353,12 +353,6 @@ "order": 4, "description": "Show line numbers." }, - "sherpaIntent.spellCheck.enabled": { - "type": "boolean", - "default": true, - "order": 6, - "description": "Show built-in spelling diagnostics in Atomic Sherpa when no external spell checker diagnostics are available." - }, "sherpaIntent.vimMode.enabled": { "type": "boolean", "default": false, @@ -971,7 +965,6 @@ "@lezer/highlight": "^1.2.5", "@replit/codemirror-vim": "^6.4.0", "@types/vscode": "^1.109.0", - "cspell-lib": "^10.4.0", "d3-drag": "3.0.0", "d3-force": "3.0.0", "d3-selection": "3.0.0", diff --git a/scripts/preview.mjs b/scripts/preview.mjs index a3b8c3f..a9ee58b 100644 --- a/scripts/preview.mjs +++ b/scripts/preview.mjs @@ -10,7 +10,7 @@ const init = { type: 'init', text, version: 1, diagnostics: [], theme: defaultThemeSettings, mode: 'live', outlinePosition: 'right', outlineVisible: false, lineNumbers: false, readOnly: false, gitChangesGutter: false, - gitDiffLineHighlights: false, spellCheckEnabled: false, + gitDiffLineHighlights: false, contentMaxWidthEnabled: true, vimMode: false, vimKeybindings: [], vimLeader: '\\', keymap: [], findOptions: { wholeWord: false, caseSensitive: false } }; diff --git a/src/extension.ts b/src/extension.ts index 752358e..1a172e4 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -33,7 +33,6 @@ import { VIM_MODE_SETTING_KEY, CODE_BLOCKS_VSCODE_THEME_SETTING_KEY, CONTENT_MAX_WIDTH_SETTING_KEY, - SPELL_CHECK_SETTING_KEY, READ_ONLY_SETTING_KEY, getReadOnlyEnabled, setReadOnlyEnabled, @@ -48,7 +47,6 @@ import { getOutlinePosition, getOutlineVisible, getContentMaxWidthEnabled, - getSpellCheckEnabled, getThemeSettings, getVimKeybindings, getVimLeaderKey, @@ -516,7 +514,6 @@ class MarkdownWebviewProvider implements vscode.CustomEditorProvider(); private readonly panelSessions = new Map(); private readonly customDocuments = new Map(); - private readonly spellDiagnosticCollection = vscode.languages.createDiagnosticCollection('meo-spell'); private readonly customDocumentChangeEmitter = new vscode.EventEmitter< vscode.CustomDocumentContentChangeEvent >(); @@ -527,7 +524,7 @@ class MarkdownWebviewProvider implements vscode.CustomEditorProvider { if (event.contentChanges.length === 0) { @@ -716,18 +713,6 @@ class MarkdownWebviewProvider implements vscode.CustomEditorProvider this.exportSessionDocument(session, format), getFindOptions: () => this.getFindOptions(), diff --git a/src/extension/panelSession.ts b/src/extension/panelSession.ts index a4de7a4..8990972 100644 --- a/src/extension/panelSession.ts +++ b/src/extension/panelSession.ts @@ -8,12 +8,10 @@ import { EXTENSION_CONFIG_SECTION, LINE_NUMBERS_SETTING_KEY, CONTENT_MAX_WIDTH_SETTING_KEY, - SPELL_CHECK_SETTING_KEY, getReadOnlyEnabled, setReadOnlyEnabled, getContentMaxWidthEnabled, getLineNumbersEnabled, - getSpellCheckEnabled, getOutlinePosition, getOutlineVisible, getRememberPositionLines, @@ -33,12 +31,6 @@ import type { ThemeSettings } from '../shared/themeDefaults'; import type { RawVscodeTheme } from '../shared/vscodeTheme'; import type { OutlinePosition } from '../shared/extensionConfig'; import { cspellReplacementEdit } from '../spell/cspellCodeActions'; -import { - collectMeoSpellDiagnostics, - collectMeoSpellSuggestions, - hasExternalSpellDiagnostics, - MEO_SPELL_DIAGNOSTIC_SOURCE -} from '../spell/spellDiagnostics'; export type EditorMode = 'live' | 'source'; export type ExportFormat = 'html' | 'pdf'; @@ -56,7 +48,6 @@ type InitMessage = { mode: EditorMode; lineNumbers: boolean; readOnly: boolean; - spellCheckEnabled: boolean; contentMaxWidthEnabled: boolean; vimMode: boolean; vimKeybindings: VimKeybinding[]; @@ -176,11 +167,6 @@ type SetLineNumbersMessage = { enabled?: boolean; }; -type SetSpellCheckMessage = { - type: 'setSpellCheck'; - enabled: boolean; -}; - type SetOutlineVisibleMessage = { type: 'setOutlineVisible'; visible: boolean; @@ -284,7 +270,6 @@ type WebviewMessage = | DraftChangedMessage | SetModeMessage | SetLineNumbersMessage - | SetSpellCheckMessage | SetOutlineVisibleMessage | SetContentMaxWidthMessage | SetReadOnlyMessage @@ -326,7 +311,6 @@ type PanelSessionControllerParams = { document: MarkdownCustomDocument; documentUri: vscode.Uri; context: vscode.ExtensionContext; - spellDiagnosticCollection: vscode.DiagnosticCollection; agentReviewHandoff: AgentReviewHandoffController; onExportDocument: (session: PanelSession, format: ExportFormat) => Promise; getFindOptions: () => FindOptions; @@ -346,7 +330,6 @@ export type PanelSession = { prepareSave: () => Promise; requestExportSnapshot: () => Promise<{ text: string; environment?: ExportStyleEnvironment }>; rejectPendingExportSnapshots: (reason: Error) => void; - refreshSpellDiagnostics: () => void; }; export type PanelSessionController = { @@ -361,7 +344,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam document, documentUri, context, - spellDiagnosticCollection, agentReviewHandoff, onExportDocument, getFindOptions, @@ -389,8 +371,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam let lastSavedRememberedLine: number | null = null; let lastSavedRememberedLineOffset = 0; let disposed = false; - let spellCheckGeneration = 0; - let pendingSpellCheckTimer: ReturnType | null = null; const workspaceRoot = vscode.workspace.getWorkspaceFolder(document.uri)?.uri.fsPath; const pendingExportSnapshots = new Map(); @@ -525,7 +505,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam mode, lineNumbers: getLineNumbersEnabled(context), readOnly: getReadOnlyEnabled(), - spellCheckEnabled: getSpellCheckEnabled(), contentMaxWidthEnabled: getContentMaxWidthEnabled(context), vimMode: getVimModeEnabled(context), vimKeybindings: getVimKeybindings(), @@ -551,36 +530,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam return postToWebview(message); }; - const runSpellCheck = async (generation: number): Promise => { - try { - const diagnostics = document.textDocument - ? await collectMeoSpellDiagnostics(document.textDocument) - : []; - if (disposed || generation !== spellCheckGeneration) { - return; - } - spellDiagnosticCollection.set(document.uri, diagnostics); - } catch (error) { - if (!disposed) { - console.error('[MEO panelSession] spellCheck', error); - } - spellDiagnosticCollection.delete(document.uri); - } - }; - - const scheduleSpellCheck = (delayMs = 350): void => { - spellCheckGeneration += 1; - const generation = spellCheckGeneration; - if (pendingSpellCheckTimer !== null) { - clearTimeout(pendingSpellCheckTimer); - pendingSpellCheckTimer = null; - } - pendingSpellCheckTimer = setTimeout(() => { - pendingSpellCheckTimer = null; - runBackground(runSpellCheck(generation), 'spellCheck'); - }, delayMs); - }; - const sendDocChanged = async (): Promise => { const message: DocChangedMessage = { type: 'docChanged', @@ -864,8 +813,7 @@ export function createPanelSessionController(params: PanelSessionControllerParam ensureInitDelivered, prepareSave, requestExportSnapshot, - rejectPendingExportSnapshots, - refreshSpellDiagnostics: () => scheduleSpellCheck(0), + rejectPendingExportSnapshots }; const handleMessage = async (raw: WebviewMessage): Promise => { @@ -877,7 +825,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam webviewReady = true; await ensureInitDelivered(); await flushPendingRevealSelection(); - scheduleSpellCheck(0); return; case 'setMode': mode = raw.mode; @@ -892,11 +839,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam .update(LINE_NUMBERS_SETTING_KEY, visible, vscode.ConfigurationTarget.Global); return; } - case 'setSpellCheck': - await vscode.workspace - .getConfiguration(EXTENSION_CONFIG_SECTION) - .update(SPELL_CHECK_SETTING_KEY, raw.enabled === true, vscode.ConfigurationTarget.Global); - return; case 'setOutlineVisible': await setOutlineVisible(raw.visible); return; @@ -1046,8 +988,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam return; } - scheduleSpellCheck(); - if (isApplyingOwnChange) { return; } @@ -1066,7 +1006,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam if (document.isSynchronized) { return; } - scheduleSpellCheck(); if (isApplyingOwnChange && kind === 'edit') { return; } @@ -1075,24 +1014,10 @@ export function createPanelSessionController(params: PanelSessionControllerParam }), 'sendDocChanged'); }); - const documentSaveSubscription = vscode.workspace.onDidSaveTextDocument((savedDocument) => { - if (savedDocument.uri.toString() !== documentKey) { - return; - } - }); - const diagnosticsSubscription = vscode.languages.onDidChangeDiagnostics((event) => { if (!event.uris.some((uri) => uri.toString() === documentKey)) { return; } - if (document.textDocument && hasExternalSpellDiagnostics(document.textDocument)) { - spellCheckGeneration += 1; - if (pendingSpellCheckTimer !== null) { - clearTimeout(pendingSpellCheckTimer); - pendingSpellCheckTimer = null; - } - spellDiagnosticCollection.delete(document.uri); - } runBackground(sendDiagnosticsChanged(), 'sendDiagnosticsChanged'); }); @@ -1135,12 +1060,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam return; } disposed = true; - spellCheckGeneration += 1; - if (pendingSpellCheckTimer !== null) { - clearTimeout(pendingSpellCheckTimer); - pendingSpellCheckTimer = null; - } - spellDiagnosticCollection.delete(document.uri); runBackground(enqueue(async () => { try { @@ -1155,7 +1074,6 @@ export function createPanelSessionController(params: PanelSessionControllerParam messageSubscription.dispose(); documentChangeSubscription.dispose(); localChangeSubscription.dispose(); - documentSaveSubscription.dispose(); diagnosticsSubscription.dispose(); textEditorSelectionSubscription.dispose(); activeTextEditorSubscription.dispose(); @@ -1463,22 +1381,6 @@ async function resolveDiagnosticSuggestions( } } - if (suggestions.length === 0 && request.source === MEO_SPELL_DIAGNOSTIC_SOURCE) { - const spellSuggestions = document.textDocument - ? await collectMeoSpellSuggestions(document.textDocument, requestedRange.from, requestedRange.to) - : []; - for (const suggestion of spellSuggestions) { - if (seen.has(suggestion)) { - continue; - } - seen.add(suggestion); - suggestions.push(suggestion); - if (suggestions.length >= MAX_DIAGNOSTIC_SUGGESTIONS) { - break; - } - } - } - return { ...emptyResponse, suggestions diff --git a/src/shared/extensionConfig.ts b/src/shared/extensionConfig.ts index 9961b3c..dd2bee8 100644 --- a/src/shared/extensionConfig.ts +++ b/src/shared/extensionConfig.ts @@ -16,7 +16,6 @@ import { getActiveVscodeRawTheme, type RawVscodeTheme } from './vscodeTheme'; export const EXTENSION_CONFIG_SECTION = 'sherpaIntent'; export const LINE_NUMBERS_SETTING_KEY = 'lineNumbers.visible'; export const READ_ONLY_SETTING_KEY = 'readOnly'; -export const SPELL_CHECK_SETTING_KEY = 'spellCheck.enabled'; export const VIM_MODE_BEHAVIOR_SETTING_KEY = 'vimMode.behavior'; export const VIM_MODE_SETTING_KEY = 'vimMode.enabled'; export const CODE_BLOCKS_VSCODE_THEME_SETTING_KEY = 'codeBlocks.useVscodeTheme'; @@ -68,10 +67,6 @@ export async function setReadOnlyEnabled(enabled: boolean): Promise { .update(READ_ONLY_SETTING_KEY, enabled, vscode.ConfigurationTarget.Global); } -export function getSpellCheckEnabled(): boolean { - return vscode.workspace.getConfiguration(EXTENSION_CONFIG_SECTION).get(SPELL_CHECK_SETTING_KEY, true); -} - export function getKeymapBindings(): NormalizedKeymapBinding[] { const raw = vscode.workspace.getConfiguration(EXTENSION_CONFIG_SECTION).get(KEYMAP_SETTING_KEY, []); return parseKeymapBindings(raw); diff --git a/src/spell/spellDiagnostics.ts b/src/spell/spellDiagnostics.ts deleted file mode 100644 index 104f81e..0000000 --- a/src/spell/spellDiagnostics.ts +++ /dev/null @@ -1,171 +0,0 @@ -import * as vscode from 'vscode'; -import { - getDefaultSettings, - mergeSettings, - searchForConfig, - spellCheckDocument, - type CSpellUserSettings, - type ValidationIssue -} from 'cspell-lib'; - -export const MEO_SPELL_DIAGNOSTIC_SOURCE = 'MEO Spell'; - -const maxSpellCheckTextLength = 1_000_000; -const maxSpellSuggestions = 1; - -export function shouldRunMeoSpellCheck(document: vscode.TextDocument): boolean { - if (document.uri.scheme !== 'file') { - return false; - } - if (document.getText().length > maxSpellCheckTextLength) { - return false; - } - - const meoEnabled = vscode.workspace - .getConfiguration('sherpaIntent', document.uri) - .get('spellCheck.enabled', true); - if (!meoEnabled) { - return false; - } - - return vscode.workspace.getConfiguration('cSpell', document.uri).get('enabled', true); -} - -export function hasExternalSpellDiagnostics(document: vscode.TextDocument): boolean { - return vscode.languages.getDiagnostics(document.uri).some((diagnostic) => { - if (diagnostic.source === MEO_SPELL_DIAGNOSTIC_SOURCE) { - return false; - } - const source = `${diagnostic.source ?? ''}`.toLowerCase(); - return source.includes('spell') || source.includes('cspell'); - }); -} - -export async function collectMeoSpellDiagnostics(document: vscode.TextDocument): Promise { - if (!shouldRunMeoSpellCheck(document) || hasExternalSpellDiagnostics(document)) { - return []; - } - - const text = document.getText().replace(/\r\n?/g, '\n'); - const settings = await resolveCSpellSettings(document); - const result = await spellCheckDocument( - { - uri: document.uri.toString(), - text, - languageId: document.languageId || 'markdown' - }, - { generateSuggestions: false }, - settings - ); - - if (!result.checked) { - return []; - } - - return result.issues.map((issue) => createDiagnostic(document, issue)); -} - -export async function collectMeoSpellSuggestions( - document: vscode.TextDocument, - normalizedFrom: number, - normalizedTo: number -): Promise { - if (!shouldRunMeoSpellCheck(document)) { - return []; - } - - const text = document.getText().replace(/\r\n?/g, '\n'); - const settings = await resolveCSpellSettings(document); - const result = await spellCheckDocument( - { - uri: document.uri.toString(), - text, - languageId: document.languageId || 'markdown' - }, - { generateSuggestions: true }, - { - ...settings, - numSuggestions: maxSpellSuggestions, - suggestionsTimeout: 750 - } - ); - - if (!result.checked) { - return []; - } - - const targetFrom = Math.max(0, Math.floor(normalizedFrom)); - const targetTo = Math.max(targetFrom, Math.floor(normalizedTo)); - const issue = result.issues.find((candidate) => { - const from = Math.max(0, Math.floor(candidate.offset)); - const to = from + Math.max(1, Math.floor(candidate.length ?? candidate.text.length)); - return from === targetFrom && to === targetTo; - }); - - return uniqueSuggestions(issue?.suggestions ?? [], issue?.text ?? '').slice(0, maxSpellSuggestions); -} - -async function resolveCSpellSettings(document: vscode.TextDocument): Promise { - const localConfig = await searchForConfig(document.uri.fsPath); - if (!localConfig) { - return getDefaultSettings(); - } - return mergeSettings(getDefaultSettings(), localConfig); -} - -function uniqueSuggestions(suggestions: string[], original: string): string[] { - const seen = new Set(); - const normalizedOriginal = original.toLowerCase(); - const result: string[] = []; - for (const suggestion of suggestions) { - const trimmed = `${suggestion}`.trim(); - if (!trimmed || trimmed.toLowerCase() === normalizedOriginal || seen.has(trimmed)) { - continue; - } - seen.add(trimmed); - result.push(trimmed); - } - return result; -} - -function createDiagnostic(document: vscode.TextDocument, issue: ValidationIssue): vscode.Diagnostic { - const offset = Number.isFinite(issue.offset) ? Math.max(0, Math.floor(issue.offset)) : 0; - const length = Number.isFinite(issue.length) ? Math.max(1, Math.floor(issue.length ?? 1)) : 1; - const start = document.positionAt(mapNormalizedOffsetToDocumentOffset(document.getText(), offset)); - const end = document.positionAt(mapNormalizedOffsetToDocumentOffset(document.getText(), offset + length)); - const diagnostic = new vscode.Diagnostic( - new vscode.Range(start, end), - issue.message || `Unknown word: ${issue.text}`, - vscode.DiagnosticSeverity.Information - ); - diagnostic.source = MEO_SPELL_DIAGNOSTIC_SOURCE; - diagnostic.code = issue.text; - return diagnostic; -} - -function mapNormalizedOffsetToDocumentOffset(documentText: string, normalizedOffset: number): number { - const target = Number.isFinite(normalizedOffset) ? Math.max(0, normalizedOffset) : documentText.length; - if (target === 0) { - return 0; - } - - let normalizedIndex = 0; - let documentIndex = 0; - - while (documentIndex < documentText.length && normalizedIndex < target) { - if (documentText.charCodeAt(documentIndex) === 13) { - if (documentText.charCodeAt(documentIndex + 1) === 10) { - documentIndex += 2; - } else { - documentIndex += 1; - } - normalizedIndex += 1; - continue; - } - - documentIndex += 1; - normalizedIndex += 1; - } - - return documentIndex; -} diff --git a/src/types/cspell-lib.d.ts b/src/types/cspell-lib.d.ts deleted file mode 100644 index b36215f..0000000 --- a/src/types/cspell-lib.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -declare module 'cspell-lib' { - export interface CSpellUserSettings { - [key: string]: unknown; - } - - export interface ValidationIssue { - text: string; - offset: number; - length?: number; - message?: string; - suggestions?: string[]; - } - - export interface SpellCheckDocumentResult { - checked: boolean; - issues: ValidationIssue[]; - } - - export function getDefaultSettings(): CSpellUserSettings; - export function mergeSettings(...settings: CSpellUserSettings[]): CSpellUserSettings; - export function searchForConfig(searchFrom: string | URL | undefined): Promise; - export function spellCheckDocument( - document: { uri: string; text: string; languageId?: string; locale?: string }, - options: { generateSuggestions?: boolean; noConfigSearch?: boolean }, - settings: CSpellUserSettings - ): Promise; -} diff --git a/webview/src/index.ts b/webview/src/index.ts index 25bcbf8..39421e0 100644 --- a/webview/src/index.ts +++ b/webview/src/index.ts @@ -1,4 +1,4 @@ -import { createElement, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, List, ListOrdered, ListTodo, ListTree, Hash, Code, Terminal, Quote, Minus, Table2, Link, Brackets, Image, Bold, Italic, Strikethrough, Search, Share, PanelLeftRightDashed, SpellCheck2, PencilOff } from 'lucide'; +import { createElement, Heading, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, List, ListOrdered, ListTodo, ListTree, Hash, Code, Terminal, Quote, Minus, Table2, Link, Brackets, Image, Bold, Italic, Strikethrough, Search, Share, PanelLeftRightDashed, PencilOff } from 'lucide'; import { setImageSrcResolver, initializeImageHandling, resolveImageSrc, settleImageSrcRequest, handleSavedImagePath, handleImagePaste } from './helpers/images'; import { createOutlineController } from './helpers/outline'; import { normalizeWikiTarget, replaceWikiLinkStatuses, initializeWikiLinkHandling, collectWikiLinkTargets, requestWikiLinkStatuses, scheduleWikiLinkStatusRefresh, setWikiLinkRefreshContext, cancelPendingWikiStatusRefresh, handleResolvedWikiLinks } from './helpers/wikiLinks'; @@ -155,7 +155,6 @@ let userKeymapKeys = new Set(); let lineNumbersVisible = true; let readOnlyEnabled = false; -let spellCheckEnabled = true; let contentMaxWidthEnabled = false; const CONTENT_MAX_WIDTH_ENABLED_VALUE = '800px'; @@ -183,25 +182,12 @@ lineNumbersBtn.dataset.action = 'lineNumbers'; lineNumbersBtn.title = 'Hide Line Numbers'; lineNumbersBtn.appendChild(createElement(Hash, { width: 18, height: 18 })); -const spellCheckBtn = document.createElement('button'); -spellCheckBtn.type = 'button'; -spellCheckBtn.className = 'format-button toggle-button is-active'; -spellCheckBtn.dataset.action = 'spellCheck'; -spellCheckBtn.title = 'Disable Spellcheck'; -spellCheckBtn.appendChild(createElement(SpellCheck2, { width: 18, height: 18 })); - const updateLineNumbersUI = () => { lineNumbersBtn.classList.toggle('is-active', lineNumbersVisible); lineNumbersBtn.setAttribute('aria-pressed', lineNumbersVisible ? 'true' : 'false'); lineNumbersBtn.title = lineNumbersVisible ? 'Hide Line Numbers' : 'Show Line Numbers'; }; -const updateSpellCheckUI = () => { - spellCheckBtn.classList.toggle('is-active', spellCheckEnabled); - spellCheckBtn.setAttribute('aria-pressed', spellCheckEnabled ? 'true' : 'false'); - spellCheckBtn.title = spellCheckEnabled ? 'Disable Spellcheck' : 'Enable Spellcheck'; -}; - const updateContentMaxWidthUI = () => { contentMaxWidthBtn.classList.toggle('is-active', contentMaxWidthEnabled); contentMaxWidthBtn.setAttribute('aria-pressed', contentMaxWidthEnabled ? 'true' : 'false'); @@ -260,18 +246,6 @@ const setReadOnlyEnabled = (enabled: boolean, { post = true } = {}) => { } }; -const setSpellCheckEnabled = (enabled, { post = true } = {}) => { - const nextEnabled = enabled !== false; - const changed = nextEnabled !== spellCheckEnabled; - if (changed) { - spellCheckEnabled = nextEnabled; - } - updateSpellCheckUI(); - if (post && changed) { - vscode.postMessage({ type: 'setSpellCheck', enabled: spellCheckEnabled }); - } -}; - const setContentMaxWidthEnabled = (enabled, { post = true, persist = true } = {}) => { const nextEnabled = enabled === true; const changed = nextEnabled !== contentMaxWidthEnabled; @@ -335,10 +309,6 @@ const toggleLineNumbers = () => { setLineNumbersVisible(!lineNumbersVisible); }; -const toggleSpellCheck = () => { - setSpellCheckEnabled(!spellCheckEnabled); -}; - const separator = document.createElement('div'); separator.className = 'format-separator'; separator.setAttribute('role', 'separator'); @@ -509,7 +479,7 @@ const exportWrapper = document.createElement('div'); exportWrapper.className = 'export-wrapper'; exportWrapper.append(exportBtn, exportDropdownWrapper); -rightGroup.append(findToggleBtn, contentMaxWidthBtn, outlineBtn, lineNumbersBtn, spellCheckBtn, exportWrapper); +rightGroup.append(findToggleBtn, contentMaxWidthBtn, outlineBtn, lineNumbersBtn, exportWrapper); const modeGroup = document.createElement('div'); modeGroup.className = 'mode-group'; @@ -1515,9 +1485,6 @@ const handleInit = (message: any) => { if (typeof message.readOnly === 'boolean') { setReadOnlyEnabled(message.readOnly, { post: false }); } - if (typeof message.spellCheckEnabled === 'boolean') { - setSpellCheckEnabled(message.spellCheckEnabled, { post: false }); - } if (typeof message.vimMode === 'boolean') { setVimModeEnabled(message.vimMode); } @@ -1812,11 +1779,6 @@ window.addEventListener('message', (event) => { return; } - if (message.type === 'spellCheckChanged') { - setSpellCheckEnabled(message.enabled, { post: false }); - return; - } - if (message.type === 'contentMaxWidthChanged') { setContentMaxWidthEnabled(message.enabled, { post: false }); return; @@ -2170,7 +2132,6 @@ contentMaxWidthBtn.addEventListener('click', () => { setContentMaxWidthEnabled(!contentMaxWidthEnabled); }); lineNumbersBtn.addEventListener('click', toggleLineNumbers); -spellCheckBtn.addEventListener('click', toggleSpellCheck); persistUiState(); vscode.postMessage({ type: 'setMode', mode: currentMode }); diff --git a/webview/src/types.d.ts b/webview/src/types.d.ts index 0e7523f..8d2c472 100644 --- a/webview/src/types.d.ts +++ b/webview/src/types.d.ts @@ -12,7 +12,6 @@ type WebviewMessage = | { type: 'draftChanged'; text: string | null } | { type: 'setMode'; mode: 'live' | 'source' } | { type: 'setLineNumbers'; visible: boolean } - | { type: 'setSpellCheck'; enabled: boolean } | { type: 'setContentMaxWidth'; enabled: boolean } | { type: 'setReadOnly'; enabled: boolean } | { type: 'setOutlineVisible'; visible: boolean } @@ -38,7 +37,7 @@ type VimKeybinding = { }; type ExtensionMessage = - | { type: 'init'; text: string; version: number; diagnostics: EditorDiagnostic[]; theme: ThemeSettings; mode: 'live' | 'source'; outlinePosition: 'left' | 'right'; outlineVisible: boolean; lineNumbers: boolean; readOnly: boolean; spellCheckEnabled: boolean; contentMaxWidthEnabled: boolean; vimMode: boolean; vimKeybindings: VimKeybinding[]; vimLeader: string; keymap?: Array<{ key: string; command: string }>; findOptions: { wholeWord: boolean; caseSensitive: boolean }; restoreTopLine?: number; restoreTopLineOffset?: number } + | { type: 'init'; text: string; version: number; diagnostics: EditorDiagnostic[]; theme: ThemeSettings; mode: 'live' | 'source'; outlinePosition: 'left' | 'right'; outlineVisible: boolean; lineNumbers: boolean; readOnly: boolean; contentMaxWidthEnabled: boolean; vimMode: boolean; vimKeybindings: VimKeybinding[]; vimLeader: string; keymap?: Array<{ key: string; command: string }>; findOptions: { wholeWord: boolean; caseSensitive: boolean }; restoreTopLine?: number; restoreTopLineOffset?: number } | { type: 'docChanged'; text: string; version: number } | { type: 'applied'; version: number } | { type: 'appliedFailed'; text?: string; version?: number } @@ -49,7 +48,6 @@ type ExtensionMessage = | { type: 'outlinePositionChanged'; position: 'left' | 'right' } | { type: 'outlineVisibilityChanged'; visible: boolean } | { type: 'lineNumbersChanged'; enabled: boolean } - | { type: 'spellCheckChanged'; enabled: boolean } | { type: 'contentMaxWidthChanged'; enabled: boolean } | { type: 'readOnlyChanged'; enabled: boolean } | { type: 'toggleReadOnly' }