From 6ba7667f2bf82aa2fbbef3823567fed0819a3fb9 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 23 Apr 2019 15:41:31 -0400 Subject: Add to LSP features --- docs/dev/lsp-features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/dev/lsp-features.md b/docs/dev/lsp-features.md index 57015293c..28bae59bb 100644 --- a/docs/dev/lsp-features.md +++ b/docs/dev/lsp-features.md @@ -46,7 +46,7 @@ This list documents LSP features, supported by rust-analyzer. - trigger characters: `(`, `,`, `)` - [ ] [textDocument/declaration](https://microsoft.github.io/language-server-protocol/specification#textDocument_declaration) - [x] [textDocument/definition](https://microsoft.github.io/language-server-protocol/specification#textDocument_definition) -- [ ] [textDocument/typeDefinition](https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition) +- [x] [textDocument/typeDefinition](https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition) - [x] [textDocument/implementation](https://microsoft.github.io/language-server-protocol/specification#textDocument_implementation) - [x] [textDocument/references](https://microsoft.github.io/language-server-protocol/specification#textDocument_references) - [x] [textDocument/documentHighlight](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight) -- cgit v1.2.3 From 9d25e5dea4a24272bd891c68e02309cc69792a07 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Tue, 23 Apr 2019 16:32:30 -0400 Subject: Add to features --- docs/user/features.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs') diff --git a/docs/user/features.md b/docs/user/features.md index b44a3fce1..cbfc491b2 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -42,6 +42,18 @@ is a relatively new feature of LSP: https://github.com/Microsoft/language-server-protocol/issues/613, check your editor's LSP library to see if this feature is supported. +### Go to Definition + +Navigates to the definition of an identifier. + +### Go to Implementation + +Navigates to the impl block of structs, enums or traits. Also implemented as a code lens. + +### Go to Type Defintion + +Navigates to the type of an identifier. + ### Commands ctrl+shift+p #### Run -- cgit v1.2.3