Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.28 KB

lsp.md

File metadata and controls

50 lines (35 loc) · 1.28 KB
title rootform lsp
description Serve Rootform language features over stdio

Serve Rootform language features over stdio.

Usage

rootform lsp [options]

Options

Global options

Flag Type Default Description
-h, --help bool false show how to use rootform lsp
--color mode auto color human output: auto|always|never; default: auto
--no-pager bool false print a long report in full instead of opening it in less

Behavior

Run the Rootform language server over standard input and standard output. Protocol frames are the only standard output. Process diagnostics go to standard error; source diagnostics travel through LSP.

Exit status

Status Description
0 the client completed shutdown and exit
2 the command was used incorrectly
4 the transport or the protocol lifecycle failed

Examples

rootform lsp
rootform lsp 2>rootform-lsp.log
rootform lsp <client.frames >server.frames

Editor clients

Connect rootform lsp from VS Code or Zed.