aer lsp
Start the Apex Language Server Protocol server
Synopsis
Starts an LSP (Language Server Protocol) server for Apex.
This command starts a language server that communicates over stdin/stdout using the Language Server Protocol. It can be used by editors and IDEs that support LSP to provide features like:
- Code completion
- Go to definition
- Find references
- Hover information
- Document formatting
The server uses the same parser and semantic analysis as the rest of aer to provide accurate Apex language support.
aer lsp [source-directories...] [flags]Options
--as-namespace string treat loaded code as if it belongs to the specified namespace
-h, --help help for lsp
--package-dir string directory containing .pkg files to load
-p, --path strings source directories with .cls filesOptions inherited from parent commands
-q, --quiet suppress progress output
-v, --verbose enable verbose outputSEE ALSO
- aer - aer is the Apex Execution Runtime