fix(solidity): isolate Hardhat state on macOS (#1910)

* fix(solidity): isolate Hardhat state on macOS

---------

Co-authored-by: Yu-0312 <2.66498311e+08+Yu-0312@users.noreply.github.com>
This commit is contained in:
MaxandYu-0312 authored and GitHub committed 2026-09-03 15:21:15 +02:00
1 parent 14f1a3ce11
commit 6f86ae308e
5 files changed
+154 -1

No files matched your search

+11
View File
@@ -1164,8 +1164,19 @@ Supported settings:
|---|---|---|
| `ls_path` | managed install | Override the Solidity language server executable path. |
| `solidity_language_server_version` | `0.8.4` | Override the npm package version Serena installs when `ls_path` is not set. |
| `solidity_state_dir` | `<ls_resources_dir>/solidity-state` on macOS | Writable state root for the managed Solidity language server on macOS. Serena uses a child-process-only home-directory override so Hardhat does not write to `~/Library`; `HOME` in the Serena process is unchanged. |
| `npm_registry` | `null` | Override the npm registry Serena uses for the managed install. |
On macOS, if the default Solid-LSP resources directory is not writable, configure an alternative path:
```yaml
ls_specific_settings:
solidity:
solidity_state_dir: /path/to/writable/solidity-state
```
This setting is ignored on Linux and Windows, where the existing launch environment is unchanged.
#### SystemVerilog
Serena uses `verible-verilog-ls` for SystemVerilog support.