Esta es una versión anterior. La versión actual es 0.24.6. agent-lsp 0.24.6 · Fecha de publicación:
Archivos de instalación 0.24.0
| Arquitectura | Tipo | Ámbito | Tamaño del archivo | Descargar | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
El enlace y el SHA256 proceden del manifiesto comunitario del Administrador de paquetes de Windows. Conviene comparar el hash del archivo descargado antes de ejecutarlo.
Notas de la versión
### Added
• **`refactor` tool:language server refactorings, including the interactive ones**: lists the refactorings a server offers at a position and runs one. gopls v0.24 introduced refactorings that ask for input before computing their edit (add or remove struct tags, implement an interface, move a declaration), through a proposed LSP extension ([golang/go#76331](https://github.com/golang/go/issues/76331), [microsoft/language-server-protocol#1164](https://github.com/microsoft/language-server-protocol/issues/1164)) that editors render as dialogs. agent-lsp now implements the client side for agents: the questions come back as a typed form (`status: needs_input`, with each field's kind, default and options, and a search for `lazyEnum` fields such as the interface to implement), the agent answers with `answers: {id: value}`, and rejected answers return with an error on the field. The edit the server computes is captured instead of written, so `dry_run` previews it; otherwise it is applied and diagnostics are reported. Without this, gopls ran these refactorings with fixed default choices baked into the code action. `execute_command` on a command that needs input now points to `refactor` rather than running it without answers. Move declaration is experimental in gopls and needs its `moveDeclaration` setting.
### Fixed
• **Data race in the file watcher**:the watcher's debounce timer ran the flush of batched file events on the timer's own goroutine, which replaced the pending-events map while the event loop was still writing to it. The flush now runs on the event loop. Reported in an earlier review; found again by the race detector once a test wrote files in a watched workspace.
### Changed
• **CI uses gopls v0.24.0** (was v0.23.0), so the interactive refactoring tests run there.https://github.com/blackwell-systems/agent-lsp/releases/tag/v0.24.0