diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-04-11 09:29:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-11 09:29:15 +0000 |
| commit | 7a564af9895e1280a4b295239eecc9fa1ebcaa55 (patch) | |
| tree | 7923f4dc80834670b5043a8cf6d1383399c3da82 /docs | |
| parent | b1c9a6ba64d3ca9d539947dc72bacf0be8965e55 (diff) | |
| parent | bfa2a08da1fb7704cd95eec7111977d5d8f60ddc (diff) | |
| download | rust-7a564af9895e1280a4b295239eecc9fa1ebcaa55.tar.gz rust-7a564af9895e1280a4b295239eecc9fa1ebcaa55.zip | |
Merge #11935
11935: feat: Switch to LSP inlay hints r=lnicola a=lnicola Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/dev/lsp-extensions.md | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/docs/dev/lsp-extensions.md b/docs/dev/lsp-extensions.md index 516d1caccc3..46193a6ff3b 100644 --- a/docs/dev/lsp-extensions.md +++ b/docs/dev/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp_ext.rs hash: a61de7db4504a4d1 +lsp_ext.rs hash: 326ad62235135223 If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: @@ -571,36 +571,6 @@ interface ExpandedMacro { Expands macro call at a given position. -## Inlay Hints - -**Method:** `experimental/inlayHints` - -This request is sent from client to server to render "inlay hints" -- virtual text inserted into editor to show things like inferred types. -Generally, the client should re-query inlay hints after every modification. -Until it gets upstreamed, this follows the VS Code API. -Upstream issues: https://github.com/microsoft/language-server-protocol/issues/956 , https://github.com/rust-analyzer/rust-analyzer/issues/2797 - -**Request:** - -```typescript -interface InlayHintsParams { - textDocument: TextDocumentIdentifier, -} -``` - -**Response:** `InlayHint[]` - -```typescript -interface InlayHint { - position: Position; - label: string | InlayHintLabelPart[]; - tooltip?: string | MarkdownString | undefined; - kind?: InlayHintKind; - paddingLeft?: boolean; - paddingRight?: boolean; -} -``` - ## Hover Actions **Experimental Client Capability:** `{ "hoverActions": boolean }` |
