module AmberLSP
Defined in:
amber_lsp/analyze_file_with_coverage.cramber_lsp/analyzer.cr
amber_lsp/check_file_for_diagnostics.cr
amber_lsp/configuration.cr
amber_lsp/controller.cr
amber_lsp/document_store.cr
amber_lsp/project_context.cr
amber_lsp/server.cr
amber_lsp/version.cr
Constant Summary
-
BUILD_COMMIT =
{{ (`git -C \"/home/runner/work/amber_cli/amber_cli/src/amber_lsp\" rev-parse --short=12 HEAD 2>/dev/null || echo unknown`).chomp.stringify }} -
The git commit the binary was built from, or "unknown" outside a git checkout.
-
RELEASE =
{{ (`minecart version \"/home/runner/work/amber_cli/amber_cli/src/amber_lsp/../..\" 2>/dev/null || shards-alpha version \"/home/runner/work/amber_cli/amber_cli/src/amber_lsp/../..\" 2>/dev/null || shards version \"/home/runner/work/amber_cli/amber_cli/src/amber_lsp/../..\"`).chomp.stringify.downcase }} -
The amber_cli release this server ships in, read from shard.yml at compile time. Minecart is preferred; shards-alpha or shards answers when Minecart is not installed.
-
USAGE =
"Usage:\n amber-lsp run the language server over stdin and stdout (editors start this)\n amber-lsp lookup QUERY look up a Crystal API: Type.method, Type#method, or Type\n amber-lsp hint read compiler output on stdin and print matching API card hints\n amber-lsp --check FILE.cr check one file with the Amber V2 rules\n amber-lsp context [--root DIR] print the library rule packs detected for this project\n amber-lsp --version print the build: version, amber_cli release, commit\n\nAdd --help after lookup, hint, or context for its options.\nGuide: https://github.com/amberframework/amber_cli/blob/main/docs/guides/ai-assistants.md" -
Printed by
amber-lsp --help. With no arguments amber-lsp runs the language server on stdin. -
VERSION =
"1.0.0"
Class Method Summary
-
.version_line : String
One line that identifies this exact build, printed by
amber-lsp --version.
Class Method Detail
def self.version_line : String
#
One line that identifies this exact build, printed by amber-lsp --version.