aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/lib.rs')
-rw-r--r--crates/ra_ide/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 9f45003d3..8b1292a41 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -44,6 +44,7 @@ mod marks;
44#[cfg(test)] 44#[cfg(test)]
45mod test_utils; 45mod test_utils;
46 46
47use ra_project_model::InlayHintOptions;
47use std::sync::Arc; 48use std::sync::Arc;
48 49
49use ra_cfg::CfgOptions; 50use ra_cfg::CfgOptions;
@@ -318,9 +319,9 @@ impl Analysis {
318 pub fn inlay_hints( 319 pub fn inlay_hints(
319 &self, 320 &self,
320 file_id: FileId, 321 file_id: FileId,
321 max_inlay_hint_length: Option<usize>, 322 inlay_hint_opts: &InlayHintOptions,
322 ) -> Cancelable<Vec<InlayHint>> { 323 ) -> Cancelable<Vec<InlayHint>> {
323 self.with_db(|db| inlay_hints::inlay_hints(db, file_id, max_inlay_hint_length)) 324 self.with_db(|db| inlay_hints::inlay_hints(db, file_id, inlay_hint_opts))
324 } 325 }
325 326
326 /// Returns the set of folding ranges. 327 /// Returns the set of folding ranges.