diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-23 22:16:50 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-04-23 22:16:50 +0100 |
commit | a71d0ecd774008bbfe8cb2215ffa6dedd5024877 (patch) | |
tree | a14b7ac27dad547fd5832d29a785f01cbba2da91 /docs | |
parent | a094d5c621e44ff78dce953c0cae7cfba4b2840e (diff) | |
parent | 9d25e5dea4a24272bd891c68e02309cc69792a07 (diff) |
Merge #1201
1201: Goto Type Definition for ADTs r=matklad a=kjeremy
Very basic go to type definition
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/lsp-features.md | 2 | ||||
-rw-r--r-- | docs/user/features.md | 12 |
2 files changed, 13 insertions, 1 deletions
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. | |||
46 | - trigger characters: `(`, `,`, `)` | 46 | - trigger characters: `(`, `,`, `)` |
47 | - [ ] [textDocument/declaration](https://microsoft.github.io/language-server-protocol/specification#textDocument_declaration) | 47 | - [ ] [textDocument/declaration](https://microsoft.github.io/language-server-protocol/specification#textDocument_declaration) |
48 | - [x] [textDocument/definition](https://microsoft.github.io/language-server-protocol/specification#textDocument_definition) | 48 | - [x] [textDocument/definition](https://microsoft.github.io/language-server-protocol/specification#textDocument_definition) |
49 | - [ ] [textDocument/typeDefinition](https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition) | 49 | - [x] [textDocument/typeDefinition](https://microsoft.github.io/language-server-protocol/specification#textDocument_typeDefinition) |
50 | - [x] [textDocument/implementation](https://microsoft.github.io/language-server-protocol/specification#textDocument_implementation) | 50 | - [x] [textDocument/implementation](https://microsoft.github.io/language-server-protocol/specification#textDocument_implementation) |
51 | - [x] [textDocument/references](https://microsoft.github.io/language-server-protocol/specification#textDocument_references) | 51 | - [x] [textDocument/references](https://microsoft.github.io/language-server-protocol/specification#textDocument_references) |
52 | - [x] [textDocument/documentHighlight](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight) | 52 | - [x] [textDocument/documentHighlight](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight) |
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: | |||
42 | https://github.com/Microsoft/language-server-protocol/issues/613, check your | 42 | https://github.com/Microsoft/language-server-protocol/issues/613, check your |
43 | editor's LSP library to see if this feature is supported. | 43 | editor's LSP library to see if this feature is supported. |
44 | 44 | ||
45 | ### Go to Definition | ||
46 | |||
47 | Navigates to the definition of an identifier. | ||
48 | |||
49 | ### Go to Implementation | ||
50 | |||
51 | Navigates to the impl block of structs, enums or traits. Also implemented as a code lens. | ||
52 | |||
53 | ### Go to Type Defintion | ||
54 | |||
55 | Navigates to the type of an identifier. | ||
56 | |||
45 | ### Commands <kbd>ctrl+shift+p</kbd> | 57 | ### Commands <kbd>ctrl+shift+p</kbd> |
46 | 58 | ||
47 | #### Run | 59 | #### Run |