]> git.lizzy.rs Git - rust.git/blobdiff - crates/ide/src/lib.rs
Improve completion of cfg attributes
[rust.git] / crates / ide / src / lib.rs
index 4bd073cc32f0f84549a9c930caeb0a97b055fa65..0693869a208a670e1ff8462b435867e9c0b80f1c 100644 (file)
@@ -220,6 +220,7 @@ pub fn from_single_file(text: String) -> (Analysis, FileId) {
             cfg_options,
             Env::default(),
             Default::default(),
+            Default::default(),
         );
         change.change_file(file_id, Some(Arc::new(text)));
         change.set_crate_graph(crate_graph);
@@ -408,9 +409,10 @@ pub fn hover(
         &self,
         position: FilePosition,
         links_in_hover: bool,
+        documentation: bool,
         markdown: bool,
     ) -> Cancellable<Option<RangeInfo<HoverResult>>> {
-        self.with_db(|db| hover::hover(db, position, links_in_hover, markdown))
+        self.with_db(|db| hover::hover(db, position, links_in_hover, documentation, markdown))
     }
 
     /// Return URL(s) for the documentation of the symbol under the cursor.