code.languages

Synopsis

code.languages

Description

Lists one language record for every language with a built-in grammar, in the order of the grammar registry, followed by the languages that have only a configured language server, in alphabetical order.

The server fields come from the pool of language servers. The command does not start servers and does not wait for requests in progress, so it answers while other commands use the servers. A server is reported as found when its program is on PATH and code.servers_allow allows it. Without a server pool, server gives the configured program and server_found is false.

Parameters

The command has no parameters.

Input and output

Form Input Output
default none language

Effect

Property Value
Category source
Effect read
Reversibility read
Implementation builtin

Examples

List every language.

code.languages

List the languages whose server is installed.

code.languages |> filter server_found

Show the running servers with their roots.

code.languages |> filter server_running |> select language server server_pid server_root

Errors

The command reports no errors of its own.

code.diagnostics, code.rename, configuration keys code.servers, code.servers_allow, code.max_servers.

Source file on GitHub: docs/commands/code.languages.md