Start a language server for an editor that supports the Language Server Protocol. The running server processes editor requests until the client shuts it down.
Arguments
- debug
(
logical | character) With the defaultFALSE, use the configured logging settings.TRUEenables diagnostic logging to standard error. A character file path enables diagnostic logging and appends messages to that file.- host
(
character) Host of the client's listening TCP socket whenportis set.- port
(
numeric | NULL) With the defaultNULL, read messages from standard input and write replies to standard output. Supply a port number to connect to a TCP listener that the client has already opened onhost.
Details
An editor extension normally starts the R process. To configure a generic client for standard input and output (stdio), select an R installation that has access to this package and give the client this launch command.
For separate command and argument fields, use R as the executable and
pass --no-echo, -e, and languageserver::run() as three arguments.
See also
run_embedded() for hosts that pass complete JSON-RPC messages,
server settings,
editor features, and
vignette("quick-start", package = "languageserver").