]> git.lizzy.rs Git - rust.git/commitdiff
Touch lsp-extensions.md
authorKirill Bulatov <mail4score@gmail.com>
Mon, 3 May 2021 16:00:24 +0000 (19:00 +0300)
committerKirill Bulatov <mail4score@gmail.com>
Mon, 3 May 2021 16:00:24 +0000 (19:00 +0300)
docs/dev/lsp-extensions.md

index f0f981802ef241fa577cfbb2c89901b1241129f4..e2ea695f2602e8dee7ba718d30481ada3b721ef7 100644 (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