aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/conv.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-04 19:38:10 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-04 19:38:10 +0100
commitaa7bdfd37f999607806cf47c0108d33a5b44b3e5 (patch)
tree83e606dd367454ce65262b77e0a64d723c858d35 /crates/ra_lsp_server/src/conv.rs
parent9c49f6c36e1e097f938946811d1e2f5eb70edca9 (diff)
parent8198e13c26fe985af5893af7bdac04041880b461 (diff)
Merge #1208
1208: [WIP] Goto for Macro's r=matklad a=Lapz Adds goto definition for macros. Currently only works for macros in the current crate ~~otherwise it panics~~. Proper macro resolution needs to be added for it to resolve macros in other crates. Todo - [X] Allow goto from macro calls - [X] Fix panics - [x] Add tests ![Screen Recording 2019-04-25 at 18 00 24](https://user-images.githubusercontent.com/19998186/56754499-1dd01c00-6785-11e9-9e9a-1e36de70cfa3.gif) Co-authored-by: Lenard Pratt <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/conv.rs')
-rw-r--r--crates/ra_lsp_server/src/conv.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/conv.rs b/crates/ra_lsp_server/src/conv.rs
index 4d6ede316..50a12ddbc 100644
--- a/crates/ra_lsp_server/src/conv.rs
+++ b/crates/ra_lsp_server/src/conv.rs
@@ -73,6 +73,7 @@ impl Conv for CompletionItemKind {
73 CompletionItemKind::Static => Value, 73 CompletionItemKind::Static => Value,
74 CompletionItemKind::Method => Method, 74 CompletionItemKind::Method => Method,
75 CompletionItemKind::TypeParam => TypeParameter, 75 CompletionItemKind::TypeParam => TypeParameter,
76 CompletionItemKind::Macro => Method,
76 } 77 }
77 } 78 }
78} 79}