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 rather than guessed from text.
hanzo lsp diagnosticsReports every problem the language server finds in one file — compile errors, type errors and lints, each with its span and its severity (1 error, 2 warning, 3 information, 4 hint).
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 (definition, reference, type, implementation — empty means definition).
hanzo lsp symbolsOutlines one file: every declaration in it, with its kind and its span.
Was this page useful?