diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-02-05 05:53:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 05:53:02 +1100 |
commit | b77fcbc518428429e39f5ba94e41fcd0418ee7a0 (patch) | |
tree | 0051cc7e5ac0c8f83278de093a2be7209cf9fcfc /cli/lsp/README.md | |
parent | 644a7ff2d70cbd8bfba4c87b75a047e79830c4b6 (diff) |
feat(lsp): add TS quick fix code actions (#9396)
Diffstat (limited to 'cli/lsp/README.md')
-rw-r--r-- | cli/lsp/README.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cli/lsp/README.md b/cli/lsp/README.md index 87a662fc3..c43590f60 100644 --- a/cli/lsp/README.md +++ b/cli/lsp/README.md @@ -14,3 +14,21 @@ integrated into the command line and can be started via the `lsp` sub-command. When the language server is started, a `LanguageServer` instance is created which holds all of the state of the language server. It also defines all of the methods that the client calls via the Language Server RPC protocol. + +## Custom requests + +The LSP currently supports the following custom requests. A client should +implement these in order to have a fully functioning client that integrates well +with Deno: + +- `deno/cache` - This command will instruct Deno to attempt to cache a module + and all of its dependencies. It expects an argument of + `{ textDocument: TextDocumentIdentifier }` to be passed. +- `deno/performance` - Requests the return of the timing averages for the + internal instrumentation of Deno. +- `deno/virtualTextDocument` - Requests a virtual text document from the LSP, + which is a read only document that can be displayed in the client. This allows + clients to access documents in the Deno cache, like remote modules and + TypeScript library files built into Deno. It also supports a special URL of + `deno:/status.md` which provides a markdown formatted text document that + contains details about the status of the LSP for display to a user. |