Skip to content

Delphi LSP #2

@GitStorageOne

Description

@GitStorageOne

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions