From 005fcb8ffaaad6a72d3a70c70be9d3699bab4ddf Mon Sep 17 00:00:00 2001 From: Jo Franchetti Date: Mon, 29 Apr 2024 10:32:34 +0100 Subject: [PATCH] update cli docs for lsp (#445) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- runtime/manual/tools/lsp.md | 52 +++++++++++++++++++++++++++++++++++++ sidebars/runtime.js | 5 ++++ 2 files changed, 57 insertions(+) create mode 100644 runtime/manual/tools/lsp.md diff --git a/runtime/manual/tools/lsp.md b/runtime/manual/tools/lsp.md new file mode 100644 index 000000000..dd0020788 --- /dev/null +++ b/runtime/manual/tools/lsp.md @@ -0,0 +1,52 @@ +# deno lsp + +Starts the Deno language server. The language server is used by editors to provide features like intellisense, code formatting, and more. + +## Command + +`deno lsp [OPTIONS]` + +## Synopsis + +```bash +deno lsp [-q|--quiet] + +deno lsp -h|--help +``` + +## Description + +The 'deno lsp' subcommand provides a way for code editors and IDEs to interact with Deno using the Language Server Protocol. + +Usually humans do not use this subcommand directly. For example, 'deno lsp' can provide IDEs with go-to-definition support and automatic code formatting. + +Read more about [how to connect editors and IDEs to 'deno lsp']( +https://deno.land/manual@v1.42.4/getting_started/setup_your_environment#editors-and-ides). + +## Arguments + +There are no required arguments for this command. + +## Options + +- `-q, --quiet` + + Suppress diagnostic output + +- `-h, --help` + + Prints help information + +## Examples + +- Run the command + +```bash +deno lsp +``` + +- Run the command 2 + +```bash +deno lsp2 +``` diff --git a/sidebars/runtime.js b/sidebars/runtime.js index 59ecd16ad..cb566c5ff 100644 --- a/sidebars/runtime.js +++ b/sidebars/runtime.js @@ -180,6 +180,11 @@ const sidebars = { label: "deno lint", id: "manual/tools/linter", }, + { + type: "doc", + label: "deno lsp", + id: "manual/tools/lsp", + }, { type: "doc", label: "deno repl",