Touch lsp-extensions.md

This commit is contained in:
Kirill Bulatov 2021-05-03 19:00:24 +03:00
parent 53a73de3d1
commit 3eab6ce2e3

View File

@ -81,6 +81,7 @@ If this capability is set, `CodeAction` returned from the server contain an addi
interface CodeAction {
title: string;
group?: string;
data?: string;
...
}
```
@ -101,6 +102,8 @@ The set of actions `[ { title: "foo" }, { group: "frobnicate", title: "bar" }, {
Alternatively, selecting `frobnicate` could present a user with an additional menu to choose between `bar` and `baz`.
`data` field contains optional json data for deferred resolve of the action data that's slow to compute in the original request.
### Example
```rust