agdalicious for VS Code
Agda support backed by agdalicious-lsp:
diagnostics, hovers, completion, go to definition, and Agda's goal commands
(give, refine, case split, …) as code actions in holes.
Requirements
agda must be installed and on your PATH. See the
project README for how to
install it.
The language server, agdalicious-lsp, comes with the extension on Linux
(x64, arm64), macOS (Apple silicon) and Windows (x64). On other platforms,
install it too (see the project README) and put it on your PATH, or set
agdalicious.lsp.command to it. To use a server of your own anywhere, set
agdalicious.lsp.command.
Optionally, for completion, hovers and diagnostics in the Haskell code of
FOREIGN GHC and COMPILE GHC pragmas, also put haskell-language-server
(haskell-language-server-wrapper) and ghc on your PATH.
Type \ followed by an abbreviation to get a Unicode character, as in Agda's
Emacs mode: \bN → ℕ, \to → →, \lambda → λ, \_1 → ₁.
agdalicious.unicode.abbreviations: the abbreviations. Entries you add are
merged with the defaults; set one to null to remove it.
agdalicious.unicode.delay: milliseconds without typing after which a
complete abbreviation is replaced (0: right away when it cannot grow).
agdalicious.unicode.leader, agdalicious.unicode.enabled.
Commands
| Command |
|
| Agda: Compute (to normal form) |
evaluate the selection, or an expression asked for |
| Agda: Compute (to head normal form) |
|
| Agda: Compute (ignoring abstract) |
|
| Agda: Compute! (with its Show instance) |
|
| Agda: Info |
toggle the infoview |
| Agda: Restart |
restart the language server |
Settings
agdalicious.lsp.command: how to start the server (default: the one that
comes with the extension, else agdalicious-lsp from PATH).
agdalicious.foreign: the language servers for FOREIGN/COMPILE code,
e.g. {"GHC": {"command": ["haskell-language-server-wrapper", "--lsp"]}, "JS": null}.