mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
fix(gdscript): address review feedback — configurable port/timeout, safer version detection
- Rename LSP_PORT → DEFAULT_GODOT_LS_PORT and add DEFAULT_GODOT_REQUEST_TIMEOUT - Make port and request_timeout overridable via ls_specific_settings["gdscript"] by reading self._custom_settings in _create_language_server_interface - Move self._conn_info setup into _create_language_server_interface so it can consume ls_specific_settings (which requires super().__init__ to have run) - Fix _detect_godot_version to return int | None instead of always defaulting to 4: use an explicit config_version→major dict; return None for unrecognized versions and detection failures; caller logs warning on None - Update setup guide and configuration reference docs with new settings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a1c281dc02
commit
ef22522ee2
3 files changed
+63
-12
No files matched your search
@@ -487,6 +487,27 @@ Supported settings:
|
||||
| `fsautocomplete_version` | `0.83.0` | Override the FsAutoComplete version Serena installs as a .NET tool. |
|
||||
|
||||
|
||||
#### GDScript (Godot Engine)
|
||||
|
||||
Serena connects to the Godot editor's built-in LSP server over TCP. No separate process is launched.
|
||||
|
||||
Supported settings:
|
||||
|
||||
| Setting | Default | Description |
|
||||
|---|---|---|
|
||||
| `port` | `6008` | TCP port the running Godot editor listens on for LSP connections. |
|
||||
| `request_timeout` | `30.0` | Seconds to wait for a response from the Godot LSP server. |
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
ls_specific_settings:
|
||||
gdscript:
|
||||
port: 6008
|
||||
request_timeout: 60.0
|
||||
```
|
||||
|
||||
|
||||
#### Go (`gopls`)
|
||||
|
||||
Serena forwards `ls_specific_settings.go.gopls_settings` to `gopls` as LSP `initializationOptions` when the Go language server is started.
|
||||
|
||||
Reference in new issue
Block a user