diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/lsp-extensions.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 2a966a96d..51aa79517 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md | |||
@@ -1,5 +1,5 @@ | |||
1 | <!--- | 1 | <!--- |
2 | lsp_ext.rs hash: 8f1ae8530f69e3a3 | 2 | lsp_ext.rs hash: 34aec6bfeaeb97a |
3 | 3 | ||
4 | If you need to change the above hash to make the test pass, please check if you | 4 | If you need to change the above hash to make the test pass, please check if you |
5 | need to adjust this doc as well and ping this issue: | 5 | need to adjust this doc as well and ping this issue: |
@@ -573,3 +573,14 @@ This request is sent from client to server to open the current project's Cargo.t | |||
573 | ``` | 573 | ``` |
574 | 574 | ||
575 | `experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword. | 575 | `experimental/openCargoToml` returns a single `Link` to the start of the `[package]` keyword. |
576 | |||
577 | ## CodeLens resolve request | ||
578 | |||
579 | This request is sent from client to server to resolve previously provided CodeLens. | ||
580 | |||
581 | As an alternative to `any` type in `data` field of `CodeLens`, you may use `CodeLensResolveData`: | ||
582 | ```typescript | ||
583 | interface CodeLensResolveData { | ||
584 | data: (DefinitionParams | TextDocumentPositionParams), | ||
585 | } | ||
586 | ``` | ||