Skip to content

Commit

Permalink
update cli docs for lsp (#445)
Browse files Browse the repository at this point in the history
Co-authored-by: Bartek Iwańczuk <[email protected]>
  • Loading branch information
thisisjofrank and bartlomieju authored Apr 29, 2024
1 parent 132043b commit 005fcb8
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
52 changes: 52 additions & 0 deletions runtime/manual/tools/lsp.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]/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
```
5 changes: 5 additions & 0 deletions sidebars/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 005fcb8

Please sign in to comment.