-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
It would be great to enhance this solution by using DelphiLSP; many agentic tools allow you to add custom LSP servers.
https://opencode.ai/docs/lsp/#custom-lsp-servers
https://docwiki.embarcadero.com/RADStudio/Florence/en/Using_DelphiLSP_Code_Insight_with_Other_Editors
Command to test that LSP actually works:
opencode debug lsp diagnostics ./path/to/file/with/error.pas
The idea is that when LLM writes a unit, a check is run through the LSP before writing, and if there's an error, it's returned to the model for correction before writing.
This potentially eliminates a ton of errors.
I haven't yet found a solution to make everything work with Delphi LSP.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels