Hanzo AI

LSP

The `hanzo lsp` commands.

Also for this capability: API · CLI · SDKs

Live semantic code intelligence — definitions, references, types, hover, outline and diagnostics — over a repository AND its resolved dependencies, with no toolchain on the caller's machine.

API reference →

CommandWhat it does
hanzo lsp completeOffers the candidates a language server has at a position, typed and resolved through the repository's dependencies…
hanzo lsp diagnosticsReports every problem the language server finds in one file — compile errors, type errors and lints, each with its span…
hanzo lsp hoverRenders the type and documentation of the symbol at a position, as the language server itself renders it.
hanzo lsp locateFinds where a symbol lives: its definition, its references, its type or its implementations, chosen by relation…
hanzo lsp symbolsOutlines one file: every declaration in it, with its kind and its span.

How is this guide?

On this page

No Headings