about summary refs log tree commit diff
path: root/crates/ra_ide_api_light
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-22 15:06:32 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-22 15:06:32 +0000
commit595a2f9900d052d0c5cc3529602aec0cbcd52614 (patch)
tree7af6dd503e1247952e3689b562c5470f4ae28613 /crates/ra_ide_api_light
parent9e0abfc0c9b9d36c45c9d8567c632c0167b31084 (diff)
parent7c27e6d2b3133e4c37b176f0e13c15994eb16dfa (diff)
downloadrust-595a2f9900d052d0c5cc3529602aec0cbcd52614.tar.gz
rust-595a2f9900d052d0c5cc3529602aec0cbcd52614.zip
Merge #593
593: Docs for completion r=matklad a=kjeremy

The first commit adds documentation support to CompletionItems.

The second one I am unsure about. Is that the right way to add docs for functions? If so should I do something similar for other `hir` types and CompletionItems?

Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
Co-authored-by: Jeremy A. Kolb <jkolb@ara.com>
Diffstat (limited to 'crates/ra_ide_api_light')
-rw-r--r--crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap10
-rw-r--r--crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap10
2 files changed, 12 insertions, 8 deletions
diff --git a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
index 10eb5c724e2..4661ea2c481 100644
--- a/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
+++ b/crates/ra_ide_api_light/src/snapshots/tests__file_structure.snap
@@ -1,7 +1,9 @@
-Created: 2019-01-15T11:15:21.073862814+00:00
-Creator: insta@0.1.4
-Source: crates/ra_ide_api_light/src/structure.rs
-
+---
+created: "2019-01-22T14:45:01.959724300+00:00"
+creator: insta@0.4.0
+expression: structure
+source: "crates\\ra_ide_api_light\\src\\structure.rs"
+---
 [
     StructureNode {
         parent: None,
diff --git a/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap b/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap
index d8f44a713a8..ef306a7a02f 100644
--- a/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap
+++ b/crates/ra_ide_api_light/src/snapshots/tests__highlighting.snap
@@ -1,7 +1,9 @@
-Created: 2019-01-15T11:15:21.073858657+00:00
-Creator: insta@0.1.4
-Source: crates/ra_ide_api_light/src/lib.rs
-
+---
+created: "2019-01-22T14:45:01.959724300+00:00"
+creator: insta@0.4.0
+expression: hls
+source: "crates\\ra_ide_api_light\\src\\lib.rs"
+---
 [
     HighlightedRange {
         range: [1; 11),